openbsd-ports/lang/parrot/patches/patch-config_init_hints_openbsd_pm
pascal f5236c82d9 Update to parrot 4.9.0, nqp/rakudo 2012.10. Tested on amd64/powerpc. Still
broken on sparc64 (though differently), tested by landry@.

ok landry@
2012-11-05 17:57:50 +00:00

37 lines
1.2 KiB
Plaintext

$OpenBSD: patch-config_init_hints_openbsd_pm,v 1.5 2012/11/05 17:57:51 pascal Exp $
--- config/init/hints/openbsd.pm.orig Wed Aug 1 09:05:12 2012
+++ config/init/hints/openbsd.pm Sat Nov 3 11:33:32 2012
@@ -17,13 +17,18 @@ sub runstep {
$conf->data->set( ccflags => $ccflags );
my $libs = $conf->data->get('libs');
+
+=for comment
+
if ( $libs !~ /-lpthread\b/ ) {
$libs .= ' -lpthread';
}
+=cut
+
my $ldflags = $conf->data->get('ldflags');
- if ( $ldflags !~ m|-L/usr/local/lib\b| ) {
- $ldflags .= ' -L/usr/local/lib';
+ if ( $ldflags !~ m|-L${LOCALBASE}/lib\b| ) {
+ $ldflags .= ' -L${LOCALBASE}/lib';
}
$conf->data->set(
@@ -34,9 +39,8 @@ sub runstep {
has_dynamic_linking => 1,
parrot_is_shared => 1,
- libparrot_shared => "libparrot$share_ext.$version",
- libparrot_shared_alias => "libparrot$share_ext",
- libparrot_soname => "-Wl,-soname=libparrot$share_ext.$version",
+ libparrot_shared => "libparrot$share_ext.$ENV{LIBparrot_VERSION}",
+ libparrot_soname => "",
);
if ( ( split( m/-/, $conf->data->get('archname_provisional'), 2 ) )[0] eq 'powerpc' ) {