On 11/07/2011 01:57 PM, Michael Schwendt wrote:

>  * The %configure macro (at least since F-16) does
>      LDFLAGS="${LDFLAGS:--Wl,-z,relro }"; export LDFLAGS; 
>    so one cannot simply export a customized $LDFLAGS in the spec file
>    without disturbing the macro.

That's what I meant by "(in addition to RPM_LD_FLAGS)" in my first mail
to this thread.  It should be done for example like this:

    %build
    export LDFLAGS="$RPM_LD_FLAGS -Wl,--as-needed"
    %configure [...]
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to