Best practices for getting CFLAGS/LDFLAGS etc.

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

 



The final values of CFLAGS/LDFLAGS/… are set (as shell variables) by the %configure macro. There is no other immediately obvious way to get those definitions. This means that if you can't use %configure for some reason, you are out of luck.

In this situation, this still works:

%global %_configure :
%configure

As a result, %configure tries to run “:” instead of “./configure”, which is a NOP, and only the shell variable initialization remains.

Is this the recommend way to initialize the compiler flags?

Should we introduce a %setup_cflags macro to make this more explicit?

Thanks,
Florian
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[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