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

Reply via email to