summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-07-25 15:19:32 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-07-25 15:19:32 +0200
commit76bd9d319e0d4376d14032cd65503da3a6c2529e (patch)
treeef3f18daa6f88400a03ea0f0282858c2e0289221 /Makefile
parent6d86cda476fd519105e642afae01fff5fc1a3e29 (diff)
Makefile: add --as-needed flag to ld
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index acf3ae42a3..8179710be1 100644
--- 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)