about summary refs log tree commit diff
path: root/perl/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'perl/Makefile.am')
-rw-r--r--perl/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl/Makefile.am b/perl/Makefile.am
index 4d898c32c668..ee220d65418e 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 \