aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--perl/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl/Makefile.am b/perl/Makefile.am
index 4d898c32c..ee220d654 100644
--- a/perl/Makefile.am
+++ b/perl/Makefile.am
@@ -16,7 +16,8 @@ pkglib_LTLIBRARIES = libNixStore.la
libNixStore_la_SOURCES = lib/Nix/Store.cc
-libNixStore_la_LIBADD = $(top_srcdir)/src/libstore/libstore.la
+libNixStore_la_LIBADD = $(top_builddir)/src/libstore/libstore.la
+libNixStore_la_LDFLAGS = -module
AM_CXXFLAGS = \
-I$(top_srcdir)/src -I$(top_srcdir)/src/libutil -I$(top_srcdir)/src/libstore \