From 76bd9d319e0d4376d14032cd65503da3a6c2529e Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 25 Jul 2007 15:19:32 +0200 Subject: [PATCH] Makefile: add --as-needed flag to ld --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5