]> git.notmuchmail.org Git - notmuch/commitdiff
Makefile: Build library with -Wl,--as-needed
authorCarl Worth <cworth@cworth.org>
Mon, 1 Nov 2010 23:52:22 +0000 (16:52 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 1 Nov 2010 23:52:22 +0000 (16:52 -0700)
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

index 490265b085530d38c4f0ffceae5b40b3096de12a..a602ed08db082685a660ac8590b52a807afb4d5a 100644 (file)
@@ -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