aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.local
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-04-06 18:20:20 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-04-06 18:30:43 -0700
commitae9d67fd810e021e1d27c24c487ffd6c34b8ecdc (patch)
treef89170ad46a0c11b1a28daff3a6e8a1e3d025efc /Makefile.local
parent66f00ab35ad3ce064bb1173c45fa9220f7d6a852 (diff)
Avoid needlessly linking final notmuch binary against libXapian.
The libnotmuch.so library already does, so we don't need to do it again. (Thanks to a Debian debhelper warning for pointing this out.)
Diffstat (limited to 'Makefile.local')
-rw-r--r--Makefile.local7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.local b/Makefile.local
index bb5d6762..b38370cc 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -41,7 +41,8 @@ extra_cxxflags :=
# Smash together user's values with our extra values
FINAL_CFLAGS = -DNOTMUCH_VERSION=$(VERSION) $(CFLAGS) $(WARN_CFLAGS) $(CONFIGURE_CFLAGS) $(extra_cflags)
FINAL_CXXFLAGS = $(CXXFLAGS) $(WARN_CXXFLAGS) $(CONFIGURE_CXXFLAGS) $(extra_cflags) $(extra_cxxflags)
-FINAL_LDFLAGS = $(LDFLAGS) $(CONFIGURE_LDFLAGS)
+FINAL_NOTMUCH_LDFLAGS = $(LDFLAGS) -Llib -lnotmuch
+FINAL_LIBNOTMUCH_LDFLAGS = $(LDFLAGS) $(CONFIGURE_LDFLAGS)
.PHONY: all
all: notmuch notmuch-shared notmuch.1.gz
@@ -167,10 +168,10 @@ notmuch_client_srcs = \
notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
notmuch: $(notmuch_client_modules) lib/libnotmuch.a
- $(call quiet,CC $(CFLAGS)) $^ $(FINAL_LDFLAGS) -o $@
+ $(call quiet,CC $(CFLAGS)) $^ $(FINAL_LIBNOTMUCH_LDFLAGS) -o $@
notmuch-shared: $(notmuch_client_modules) lib/libnotmuch.so
- $(call quiet,CC $(CFLAGS)) -Llib -lnotmuch $(notmuch_client_modules) $(FINAL_LDFLAGS) -o $@
+ $(call quiet,CC $(CFLAGS)) $(notmuch_client_modules) $(FINAL_NOTMUCH_LDFLAGS) -o $@
notmuch.1.gz: notmuch.1
gzip --stdout $^ > $@