pkgsrc/lang/parrot/patches/patch-aj
he 54ac9fb36d Update parrot from version 1.6.0 to 1.6.0nb1.
Pkgsrc changes:
 o Enable shared libraries for NetBSD, and deal with the resulting
   fallout: tests which are written in C need to point their run-path
   to the build version of the shared libraries.
 o The default is shared libs with .so, except for on Darwin, where
   shared libs are named differently.  The Darwin part is untested.
2009-10-21 14:23:13 +00:00

17 lines
754 B
Text

$NetBSD: patch-aj,v 1.1 2009/10/21 14:23:13 he Exp $
Make sure to use rpath if it's defined when linking C-language tests.
--- lib/Parrot/Test.pm.orig 2009-10-20 03:09:41.000000000 +0200
+++ lib/Parrot/Test.pm
@@ -1045,6 +1045,10 @@ sub _generate_test_functions {
. "$PConfig{ld_out}$exe_f "
. "$obj_f $cfg "
. "$PConfig{libparrot_linkflags} "
+ # If rpath is defined (and therefore rpath_blib), use it to get at the build libraries
+ . ( defined($PConfig{rpath_blib})
+ ? ( $PConfig{rpath_blib} . " " )
+ : "" )
. "$PConfig{linkflags} $PConfig{ld_debug} "
. "$iculibs $PConfig{libs}";
my $exit_code = run_command(