From ffae2dc9da12d9492be143ca9c7e9e609a2de2be Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 1 Nov 2010 16:52:22 -0700 Subject: [PATCH] Makefile: Build library with -Wl,--as-needed Previously, we were building the final binary with this option, but not the library. The library can benefit from it as well, (as pointed out by Debian's lintian). --- Makefile.local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.local b/Makefile.local index 490265b0..a602ed08 100644 --- a/Makefile.local +++ b/Makefile.local @@ -40,7 +40,7 @@ endif ifeq ($(LIBDIR_IN_LDCONFIG),0) FINAL_NOTMUCH_LDFLAGS += $(RPATH_LDFLAGS) endif -FINAL_LIBNOTMUCH_LDFLAGS = $(LDFLAGS) $(CONFIGURE_LDFLAGS) +FINAL_LIBNOTMUCH_LDFLAGS = $(LDFLAGS) $(CONFIGURE_LDFLAGS) $(AS_NEEDED_LDFLAGS) .PHONY: all all: notmuch notmuch-shared notmuch.1.gz -- 2.43.0