You are not logged in.

#1 2007-05-02 10:34:06

yossarianuk
Member
Registered: 2007-05-02
Posts: 103

Building tremulous from source - 2 sets of CFLAGS?

Hi.

I am a Arch newbie, i'm trying it out to see if it can be a gentoo replacement.

I am very impressed with the speed and simplicity of it so far, i have managed to install packages from the AUR (what a great resource!).

However I am having one issue:-

I have tried to recompile a game - tremulous (from community) using abs.

I have put my CFLAGS in /etc/makepkg.conf

---------------------------------------------------
export CFLAGS="-march=athlon-xp -O2"
export CXXFLAGS="-march=athlon-xp -O2"
---------------------------------------------------

However when i use makepkg -c it compiles with seemingly 2 sets of CFLAGS - mine (above) and the one's originally used, for example when building I see 

-march=athlon-xp -O2 , but also -march=i586 -O3 in the compile output   (I am at work at the min so I don't have the full line)

I have 2 questions regardings this

1. Having 2 -march's and 2 -O levels - which march setting will be obyed (or is it lightly to be a bad package ?
2. How do i get rid of the original march setting (-march=i586) ?

I know some people say that changing CFLAGS is not recommended but I would like to know how to (that fact that debian's apt-build package ignore's CFLAGS was the reason I stopped using ubuntu - i find debian distros pretty slow generally)

Offline

Board footer

Powered by FluxBB