From: Michael Tremer Date: Mon, 12 Dec 2022 17:02:54 +0000 (+0000) Subject: macros: Add -Wl,--as-needed to LDFLAGS by default X-Git-Tag: 0.9.29~432 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6bfe705242b551e7ae3466a637e88cb6e002c32;p=pakfire.git macros: Add -Wl,--as-needed to LDFLAGS by default Signed-off-by: Michael Tremer --- diff --git a/macros/cflags.macro b/macros/cflags.macro index 430aeab55..1175d95f1 100644 --- a/macros/cflags.macro +++ b/macros/cflags.macro @@ -5,7 +5,7 @@ export CFLAGS = # empty export CXXFLAGS = %{CFLAGS} # Export LDFLAGS -export LDFLAGS = -Wl,-z,relro -Wl,-z,now +export LDFLAGS = -Wl,--as-needed -Wl,-z,relro -Wl,-z,now # Enable optimisation and compile in debugging information CFLAGS = -O2 -g