Ville Skyttä wrote:
On Wednesday 22 April 2009, Toshio Kuratomi wrote:
Proposed additional paragraph:
""" Most C, C++, and Fortran programs will pick up the correct compiler flags from the %configure macro. If your program does not use %configure [...]
I would make this less %configure centric, maybe something like:
... correct compiler flags if you use a macro that automatically sets them to build the package, such as %configure or %cmake (check macro contents with "rpm -E %somemacro" while redhat-rpm-config and the package possibly providing the macro in /etc/rpm/* is installed if unsure whether a macro sets them). If there are no such macros that would apply to your package, the de facto standard is that ...
Thanks! Added with a little minor rewording:
... (If you're unsure whether a macro sets the flags, install redhat-rpm-config and the package that provides the macro in /etc/rpm/*. Then run "rpm -E %somemacro") ...
make CFLAGS=%{optflags} all
This bit needs quotes around %{optflags}.
Fixed. Thanks for catching this.
The draft is now on the wiki: https://fedoraproject.org/wiki/Compiler_Flags_(draft)
-Toshio