tests: Fix Perl module tests on Mac OS X. 20110711030504/pspp 20110712030504/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 10 Jul 2011 22:24:45 +0000 (15:24 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 10 Jul 2011 22:26:11 +0000 (15:26 -0700)
Tested by Jeremy Lavergne <jeremy@lavergne.gotdns.org>.

tests/perl-module.at

index 15ed6c2dbd84b89062c3474998c17d6d321366e6..b24278b7fc93b49050baaefe9d9adec6ccf3cb9c 100644 (file)
@@ -5,8 +5,12 @@ dnl built (with "make") but before it has been installed.  The -I options are
 dnl equivalent to "use ExtUtils::testlib;" inside the Perl program, but it does
 dnl not need to be run with the perl-module build directory as the current
 dnl working directory.
+dnl
+dnl XXX "libtool --mode=execute" is probably better than setting
+dnl LD_LIBRARY_PATH.
 m4_define([RUN_PERL_MODULE],
   [LD_LIBRARY_PATH=$abs_top_builddir/src/.libs \
+   DYLD_LIBRARY_PATH=$abs_top_builddir/src/.libs \
    $PERL -I$abs_top_builddir/perl-module/blib/arch \
          -I$abs_top_builddir/perl-module/blib/lib])