chiark / gitweb /
Makefile: add --as-needed flag to ld
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 25 Jul 2007 13:19:32 +0000 (15:19 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 25 Jul 2007 13:19:32 +0000 (15:19 +0200)
Makefile

index acf3ae4..8179710 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -118,7 +118,7 @@ WARNINGS    = -Wstrict-prototypes -Wsign-compare -Wshadow \
                  -Wpointer-arith -Wcast-align -Wsign-compare -Wmissing-prototypes
 CFLAGS         += $(WARNINGS)
 
-LDFLAGS += -Wl,-warn-common
+LDFLAGS += -Wl,-warn-common,--as-needed
 
 OPTFLAGS = -Os
 CFLAGS += $(OPTFLAGS)