You are not logged in.

#1 2011-01-15 11:28:14

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,423
Website

override CFLAGS and CXFLAGS from /etc/makepkg.conf [solved]

This might be a stupid question, but here goes: if I redefine variables such as CFLAGS and CXXFLAGS from within a PKGBUILD, any subsequent make would use the new ones rather than the ones defined in /etc/makepkg.conf ...right?  I'm assuming that makepkg reads them once when the user invokes it.

Thanks.

Last edited by graysky (2011-01-15 11:58:58)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2011-01-15 11:34:42

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,371
Website

Re: override CFLAGS and CXFLAGS from /etc/makepkg.conf [solved]

Yes.

Offline

#3 2011-01-15 11:58:46

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,423
Website

Re: override CFLAGS and CXFLAGS from /etc/makepkg.conf [solved]

Thanks.  I looked at /usr/bin/makepkg and I believe this is the case, but I don't know of a way to check after I compile them.  Is there some place I can look within the final NAME.tar.xz to see which CFLAGS were used?  (Again, I think the answer here is "no").


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2011-01-15 12:02:25

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,371
Website

Re: override CFLAGS and CXFLAGS from /etc/makepkg.conf [solved]

No.   (but the output during the build should make it obvious what CFLAGS are being used)

Offline

#5 2011-01-15 12:08:34

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,423
Website

Re: override CFLAGS and CXFLAGS from /etc/makepkg.conf [solved]

@Allan - k, thanks!


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB