From: Carl Worth Date: Mon, 1 Nov 2010 23:52:22 +0000 (-0700) Subject: Makefile: Build library with -Wl,--as-needed X-Git-Tag: 0.4~7 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/notmuch.git/commitdiff_plain/ffae2dc9da12d9492be143ca9c7e9e609a2de2be?ds=sidebyside 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). --- 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