aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-11-01 16:52:22 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-11-01 16:52:22 -0700
commitffae2dc9da12d9492be143ca9c7e9e609a2de2be (patch)
tree5fc1eced659f0f1d354ab0775da651000c31ddf7
parent1cb28764d86e5e0c98bdd49140568e523571a5a2 (diff)
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).
-rw-r--r--Makefile.local2
1 files changed, 1 insertions, 1 deletions
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