rpmbuild: unset CFLAGS & CXXFLAGS ?

Debarshi 'Rishi' Ray debarshi.ray at gmail.com
Fri Nov 9 17:17:51 UTC 2007


Right now I was trying to build the proxyknife package (review:
https://bugzilla.redhat.com/show_bug.cgi?id=322091) and found that
while Koji builds it successfully
(http://koji.fedoraproject.org/koji/taskinfo?taskID=231772), I could
not use rpmbuild to build it locally. It would fail in the middle of
the %build stanza.

The trick to solve this was to:
$ unset CFLAGS
$ CXXFLAGS
...since I usually set them as:
export CFLAGS=-I/home/rishi/include
export CXXFLAGS=-I/home/rishi/include

So would it be a good idea to unset these two variables by default,
the way we unset DISPLAY, at the beginning of the rpmbuild process?

Thanks,
Debarshi
-- 
GPG key ID: 63D4A5A7
Key server: pgp.mit.edu




More information about the devel mailing list