build: fix out-of-tree builds, again
authorJani Nikula <jani@nikula.org>
Sun, 10 Sep 2017 11:56:16 +0000 (14:56 +0300)
committerDavid Bremner <david@tethera.net>
Wed, 13 Sep 2017 11:48:17 +0000 (08:48 -0300)
Broken, again, by yours truly in bc11759dd1fd ("build: switch to
hiding libnotmuch symbols by default"). Reference notmuch.sym via
$(srctree).

lib/Makefile.local

index 93b08d1500675f62ac0ba74099339d1ab777a2f7..8aa03891d775b7591e3f67a5a66fe8cd9c98ca9b 100644 (file)
@@ -19,7 +19,7 @@ LIBRARY_SUFFIX = so
 LINKER_NAME = libnotmuch.$(LIBRARY_SUFFIX)
 SONAME = $(LINKER_NAME).$(LIBNOTMUCH_VERSION_MAJOR)
 LIBNAME = $(SONAME).$(LIBNOTMUCH_VERSION_MINOR).$(LIBNOTMUCH_VERSION_RELEASE)
-LIBRARY_LINK_FLAG = -shared -Wl,--version-script=$(lib)/notmuch.sym,-soname=$(SONAME) $(NO_UNDEFINED_LDFLAGS)
+LIBRARY_LINK_FLAG = -shared -Wl,--version-script=$(srcdir)/$(lib)/notmuch.sym,-soname=$(SONAME) $(NO_UNDEFINED_LDFLAGS)
 ifeq ($(PLATFORM),OPENBSD)
 LIBRARY_LINK_FLAG += -lc
 endif