about summary refs log tree commit diff
path: root/perl
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-01-11T16·44+0000
committerLudovic Courtès <ludo@gnu.org>2012-01-11T16·44+0000
commitc5d9ccd810e3d4c791a912767c4463f4bb44d52e (patch)
treefab9ef83f0698382f54ad513beaf74e1d307e505 /perl
parentf86fca9b708ea98be0d508db90ec25d537fba246 (diff)
perl: Build libNixStore.la with `-module'.
Diffstat (limited to 'perl')
-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 \