On Fri, May 02, 2014 at 01:20:28AM +0100, Gianfranco Costamagna wrote:
> > A much cleaner way is just to add this to debian/rules instead of the
> > above changes:
> > 
> > export DEB_LDFLAGS_APPEND=-Wl,--as-needed
> 
> are you sure about this? Seems to be not working
> DEB_LDFLAGS_APPEND=-Wl,--as-needed
> and neither this
> DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
> 
> (or at least I don't see them when building)
> are them hidden?

It works for me (on unstable):

olly@gemse:~$ dpkg-buildflags --get LDFLAGS
-Wl,-z,relro
olly@gemse:~$ DEB_LDFLAGS_APPEND=-Wl,--as-needed dpkg-buildflags --get LDFLAGS
-Wl,-z,relro -Wl,--as-needed

Did you include the *export* before them?  That's important as it means
make will export the make variable DEB_LDFLAGS_APPEND to an environment
variable with the same name in the environment for child processes.

Without the "export", you've only set the make variable
DEB_LDFLAGS_APPEND, which dpkg-buildflags can't see.

Cheers,
    Olly


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to