Re: rpmbuild: unset CFLAGS & CXXFLAGS ?

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

 



> 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.

Yes, I should have used CPPFLAGS to set the include directory. Thanks
for pointing out.

However it still bothers me that rpmbuild takes the environment's
CFLAGS and CXXFLAGS instead of forcing its own. Since Koji normally
uses:
CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions ...
CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions ..
FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions ...
would it not be better if rpmbuild used the same values and ignored
the user's environment?

If a package, indeed, needed some custom value for CFLAGS, CXXFLAGS
and FFLAGS, I believe that can be done through the spec file itself
and the user's environment setting would not be required.

What do you think?

Cheers,
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