[svn:parrot] r41971 - trunk/config/init/hints
darbelo at svn.parrot.org
darbelo at svn.parrot.org
Wed Oct 21 16:54:07 UTC 2009
Author: darbelo
Date: Wed Oct 21 16:54:07 2009
New Revision: 41971
URL: https://trac.parrot.org/parrot/changeset/41971
Log:
Update the NetBSD hints file, shared libraries will now work there.
Patch by he++
Modified:
trunk/config/init/hints/netbsd.pm
Modified: trunk/config/init/hints/netbsd.pm
==============================================================================
--- trunk/config/init/hints/netbsd.pm Wed Oct 21 16:52:43 2009 (r41970)
+++ trunk/config/init/hints/netbsd.pm Wed Oct 21 16:54:07 2009 (r41971)
@@ -9,6 +9,9 @@
sub runstep {
my ( $self, $conf ) = @_;
+ my $share_ext = $conf->option_or_data('share_ext');
+ my $version = $conf->option_or_data('VERSION');
+
my $ccflags = $conf->data->get('ccflags');
if ( $ccflags !~ /-pthread\b/ ) {
$ccflags .= ' -pthread';
@@ -19,7 +22,16 @@
if ( $libs !~ /-lpthread\b/ ) {
$libs .= ' -lpthread';
}
- $conf->data->set( libs => $libs );
+ $conf->data->set(
+ libs => $libs,
+ rpath => '-Wl,-R',
+
+ 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",
+ );
}
1;
More information about the parrot-commits
mailing list