You are not logged in.

#1 2007-05-22 16:33:41

vincde
Member
Registered: 2007-05-22
Posts: 18

makepkg impact the gcc parameters

First I'm new to archlinux (this could be the answer to my problem), coming from gentoo and FreeBSD ;-).


I'm building my first PKGBUIL. I need to have pyevent (http://code.google.com/p/pyevent/).
My problem is coming from the compiled code. It does not react like it should be ;-(.
When I compile is without makepkg (see manual compilation) the strange reaction disappear!!!



By looking at the compilation process I see differences when I use makepkg compared to the manual compile:

- with makepkg, I see:

creating build/temp.linux-i686-2.5
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -march=i686 -O2 -pipe -fPIC -I/usr/include/python2.5 -c event.c -o build/temp.linux-i686-2.5/event.o

- with manual compile, I see:

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c event.c -o build/temp.linux-i686-2.5/event.o

QUESTION:
Why the gcc parameters are not the same ?
Does makepkg impact those parameters ?  how to by-pass it ?


ANNEXES:
- my PKGBUILD

arch=('i686')
pkgname=pyevent
pkgver='0.3'
pkgrel=1
pkgdesc="python interface to libevent"
url="http://code.google.com/p/pyevent/"
license="BSD"
depends=('pyrex' 'libevent')
source=('http://pyevent.googlecode.com/files/pyevent-0.3.tar.gz')

md5sums=('584912c92d08bf005283fb29a47a6e4d')

build() {
  cd $startdir/src/$pkgname-$pkgver
  python setup.py build  || return 1
  python setup.py install --root=$startdir/pkg || return 1
}

- manual compile:

python setup.py build

Offline

#2 2007-05-22 17:55:25

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: makepkg impact the gcc parameters

Makepkg changes them because that is Arch's policy.  Packages *should* be compiled with a i686 -march setting (x86_64 uses different CFLAGS).

These parameters are set in /etc/makepkg.conf (CFLAGS).  It is HIGHLY recommended you not change these.  You should, if there is some sort of problem, try and change the CFLAGS in the PKGBUILD itself (just like any other variable)>

Offline

#3 2007-05-23 06:37:59

vincde
Member
Registered: 2007-05-22
Posts: 18

Re: makepkg impact the gcc parameters

Thanks for the feedbacks.

I've finally find a way to make it correctly ;-).

I've post it to the AUR: http://aur.archlinux.org/packages.php?d … s=0&SeB=nd

Offline

Board footer

Powered by FluxBB