3.6% of heads up: Please correct your #includes or optflags use
Ville Skyttä
ville.skytta at iki.fi
Sat Mar 22 14:31:59 UTC 2008
On Friday 21 March 2008, Till Maas wrote:
> On Thu March 20 2008, Lubomir Kundrak wrote:
> > If you have more time, try to rebuild your package with
> > "-Werror-implicit-function-declaration" added to %optflags in your
> > ~/.rpmmacros to see if you rely on implicit declarations where you
> > should include the header files with macros and/or prototypes instead.
>
> Would you please post the exact line that needs to be added to .rpmmacros
> to achieve this?
> I tried
> %optflags %{optflags} -Werror-implicit-function-declaration
> and
> %optflags -Werror-implicit-function-declaration
> but both lines do not change the output of
> rpm --eval %optflags
> or
> rpm --eval %configure
optflags are set in rpmrc, and it doesn't seem possible to override them with
rpmmacros. Setting it in ~/.rpmrc works for me. Look up the default for
your architecture from /usr/lib/rpm/redhat/rpmrc, copy-paste that line into
your ~/.rpmrc and add stuff you want to it.
More information about the fedora-devel-list
mailing list