Re: How to use --as-needed

2010-11-17 Thread Roger Leigh
On Wed, Nov 17, 2010 at 03:12:35PM +, Tony Houghton wrote: > On 17/11/10 13:47, Roger Leigh wrote: >> On Wed, Nov 17, 2010 at 01:34:21PM +, Tony Houghton wrote: >>> How should one add --as-needed linker flags to an autotools-based >>> package? I ended up adding CFLAGS=-Wl,--as-needed to my

Re: How to use --as-needed

2010-11-17 Thread Roger Leigh
On Wed, Nov 17, 2010 at 01:34:21PM +, Tony Houghton wrote: > How should one add --as-needed linker flags to an autotools-based > package? I ended up adding CFLAGS=-Wl,--as-needed to my > dh_auto_configure parameters but is it OK to just overwrite CFLAGS like > that, or should I add it to any ex

How to use --as-needed

2010-11-17 Thread Tony Houghton
How should one add --as-needed linker flags to an autotools-based package? I ended up adding CFLAGS=-Wl,--as-needed to my dh_auto_configure parameters but is it OK to just overwrite CFLAGS like that, or should I add it to any existing CFLAGS? BTW, at first I tried LDFLAGS=--as-needed but automake