summaryrefslogtreecommitdiff
path: root/lang/parrot/patches/patch-aa
blob: a43ccc09b1f03523bd62b1ff860edce24235a181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$NetBSD: patch-aa,v 1.2 2006/01/09 17:47:07 wiz Exp $

--- /dev/null	Fri Jan  6 20:33:00 2006
+++ config/init/hints/dragonflybsd.pm	Fri Jan  6 20:37:08 2006
@@ -0,0 +1,30 @@
+# Copyright: 2005 The Perl Foundation.  All Rights Reserved.
+
+package init::hints::dragonflybsd;
+
+use strict;
+
+sub runstep
+{
+    my ($self, $conf) = @_;
+
+    my $libs = $conf->data->get('libs');
+
+    if ($libs !~ /pthread/) {
+        $libs .= ' -pthread';
+    }
+
+    $conf->data->set(
+        libs                    => $libs,
+        link                    => 'g++',
+        rpath                   => '-Wl,-R',
+
+        has_dynamic_linking     => 1,
+        parrot_is_shared        => 1,
+        libparrot_shared        => 'libparrot$(SHARE_EXT).$(SOVERSION)',
+        libparrot_shared_alias  => 'libparrot$(SHARE_EXT)',
+        libparrot_soname        => '-Wl,-soname=libparrot$(SHARE_EXT).$(SOVERSION)',
+    );
+}
+
+1;