You are not logged in.

#1 2008-09-30 18:59:28

gav616
Member
Registered: 2008-01-16
Posts: 182

setting cflags per build

my current '/etc/makepkg.conf' is

CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

which is global for every manual build right?

but in my customised PKGBUILD
i want to take away '-fomit-frame-pointer' and then add '-g' (for debug and making good backtrace reasons)

will this do it?
'unset' to get rid of the  '-fomit-frame-pointer'

build() {
unset CFLAGS
unset CXXFLAGS
export CFLAGS="-march=athlon-xp -O2 -pipe -g"
export CXXFLAGS="-march=athlon-xp -O2 -pipe -g"

would the CFLAGS to that build be '-march=athlon-xp -O2 -pipe -g' ?


thanks, im still learning.

Last edited by gav616 (2008-09-30 19:13:03)

Offline

#2 2008-10-01 22:51:28

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: setting cflags per build

That should work fine, yes. And you don't have to unset them, the export suffices for overwriting.


1000

Offline

Board footer

Powered by FluxBB