Link the perl module against the shared library instead of the static one
[pspp-builds.git] / perl-module / automake.mk
index 2b83831366c29537c77af53f81fd0d6894054b95..54ccd823ce1580181e71ec5cfccf91d8552a0be8 100644 (file)
@@ -50,8 +50,10 @@ all-local: perl-module/lib/pspp-vers.pl
        fi
        $(MAKE) $(AM_MAKEFLAGS) module-make
 
+
 check-local:
-       cd perl-module && $(MAKE) $(AM_MAKEFLAGS) test
+       loc=`pwd` ; cd $(top_builddir)/src/.libs ; llp=`pwd` ; cd $$loc ;  \
+       LD_LIBRARY_PATH=$$llp sh -c "cd perl-module && $(MAKE) $(AM_MAKEFLAGS) test "
 
 
 clean-local: