]> err.no Git - systemd/commitdiff
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 acf3ae42a3aad9d80d61b803d4237fd9c64b9b7a..8179710be1f23640c2b3847f477e6b063601645f 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)