From: Kay Sievers Date: Wed, 25 Jul 2007 13:19:32 +0000 (+0200) Subject: Makefile: add --as-needed flag to ld X-Git-Tag: 174~1879 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76bd9d319e0d4376d14032cd65503da3a6c2529e;p=systemd Makefile: add --as-needed flag to ld --- diff --git a/Makefile b/Makefile index acf3ae42..8179710b 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)