$OpenBSD: patch-config_init_hints_openbsd_pm,v 1.4 2011/03/09 22:48:32 landry Exp $ --- config/init/hints/openbsd.pm.orig Thu Jan 6 04:44:55 2011 +++ config/init/hints/openbsd.pm Wed Mar 9 23:44:36 2011 @@ -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,9 @@ sub runstep { has_dynamic_linking => 1, parrot_is_shared => 1, - libparrot_shared => "libparrot$share_ext.$version", + libparrot_shared => "libparrot$share_ext.$ENV{LIBparrot_VERSION}", libparrot_shared_alias => "libparrot$share_ext", - libparrot_soname => "-Wl,-soname=libparrot$share_ext.$version", + libparrot_soname => "", ); if ( ( split( m/-/, $conf->data->get('archname_provisional'), 2 ) )[0] eq 'powerpc' ) {