On Mon, 07 Nov 2011 17:35:53 +0200, VS (Ville) 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 [...] Good info. That's based on some background: RPM_LD_FLAGS="%{?__global_ldflags}" $ rpm --eval %__global_ldflags -Wl,-z,relro Aha! :) -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel