rpmbuild: unset CFLAGS & CXXFLAGS ?

Joachim Frieben jfrieben at gmx.de
Fri Nov 9 17:26:03 UTC 2007

> The trick to solve this was to:
> $ unset CFLAGS
> ...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?

I suppose that setting the appropriate environment variable CPPFLAGS instead of abusing C[XX]FLAGS for this purpose would have been sufficient to avoid your problems.
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

More information about the fedora-devel-list mailing list