rpmbuild: unset CFLAGS & CXXFLAGS ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux