about summary refs log tree commit diff
path: root/perl/Makefile.am
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2012-01-11T15·41+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2012-01-11T15·41+0000
commitf86fca9b708ea98be0d508db90ec25d537fba246 (patch)
treea43f0de10dce83b2210bc5591ffd5fe46afc3f1e /perl/Makefile.am
parent9fe24c5a0d1e694c6338d584a101034cfbff10bf (diff)
* Figure out the extension of dynamic libraries; don't hard-code .so.
Diffstat (limited to 'perl/Makefile.am')
-rw-r--r--perl/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl/Makefile.am b/perl/Makefile.am
index 12293fc050a6..4d898c32c668 100644
--- a/perl/Makefile.am
+++ b/perl/Makefile.am
@@ -3,13 +3,13 @@ PERL_MODULES = lib/Nix/Store.pm lib/Nix/Manifest.pm lib/Nix/GeneratePatches.pm l
 # Hack required by "make check".
 all: $(PERL_MODULES:.in=)
 	mkdir -p lib/auto/Nix/Store
-	ln -sfn $(abs_builddir)/.libs/libNixStore.so lib/auto/Nix/Store/Store.so
+	ln -sfn $(abs_builddir)/.libs/libNixStore$(dynlib_suffix) lib/auto/Nix/Store/Store$(dynlib_suffix)
 
 install-exec-local: $(PERL_MODULES:.in=)
 	$(INSTALL) -d $(DESTDIR)$(perllibdir)/Nix
 	$(INSTALL_DATA) $(PERL_MODULES:.in=) $(DESTDIR)$(perllibdir)/Nix
 	$(INSTALL) -d $(DESTDIR)$(perllibdir)/auto/Nix/Store
-	ln -sfn $(pkglibdir)/libNixStore.so $(DESTDIR)$(perllibdir)/auto/Nix/Store/Store.so
+	ln -sfn $(pkglibdir)/libNixStore$(dynlib_suffix) $(DESTDIR)$(perllibdir)/auto/Nix/Store/Store$(dynlib_suffix)
 
 # Awful hackery to get libtool to build Perl XS bindings.
 pkglib_LTLIBRARIES = libNixStore.la