Hi Thanks, but I don't like this. I think if it was a good idea, it would be the default in GNU ld - and if that is still being decided, I am happy to wait.
If an individual user or the packagers for a particular platform want to do this, it is trivial to add to LDFLAGS. On Thu, Jun 24, 2010 at 09:29:00PM +0200, Pierre Habouzit wrote: > It prevents NEEDED entries for libcrypt and librt on linux that aren't > required. > > Signed-off-by: Pierre Habouzit <madco...@debian.org> > --- > GNUmakefile | 2 +- > Makefile | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/GNUmakefile b/GNUmakefile > index 7a8adb4..54da5a6 100644 > --- a/GNUmakefile > +++ b/GNUmakefile > @@ -23,7 +23,7 @@ FDEBUG= 1 > > CC?= cc > CFLAGS+= -DBUILD="\"$(VERSION)\"" > -LDFLAGS+= -L/usr/local/lib > +LDFLAGS+= -L/usr/local/lib -Wl,--as-needed > LIBS+= > > # Sun CC > diff --git a/Makefile b/Makefile > index a026e0d..348cef7 100644 > --- a/Makefile > +++ b/Makefile > @@ -24,7 +24,7 @@ FDEBUG= 1 > > CC?= cc > CFLAGS+= -DBUILD="\"$(VERSION)\"" > -LDFLAGS+= -L/usr/local/lib > +LDFLAGS+= -L/usr/local/lib -Wl,--as-needed > LIBS+= > > .ifdef FDEBUG > -- > 1.7.1.755.geb6f2 > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users