summaryrefslogtreecommitdiff
path: root/lang/perl5/patches/patch-co
blob: 5e85bdc4d99c58e5628b54eacfa394be94e0373c (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
36
37
38
39
40
41
$NetBSD: patch-co,v 1.3 2008/12/08 12:46:13 schwarz Exp $

--- hints/freebsd.sh.orig	2007-12-18 11:47:07.000000000 +0100
+++ hints/freebsd.sh	2008-12-08 10:41:51.000000000 +0100
@@ -114,7 +114,7 @@
 	lddlflags="-Bshareable $lddlflags"
 	;;
 
-*)
+3*|4*|5*|6*)
         objformat=`/usr/bin/objformat`
         if [ x$objformat = xaout ]; then
             if [ -e /usr/lib/aout ]; then
@@ -130,6 +130,14 @@
         fi
         cccdlflags='-DPIC -fPIC'
         ;;
+
+*)
+	libpth="/usr/lib /usr/local/lib"
+	glibpth="/usr/lib /usr/local/lib"
+	ldflags="-Wl,-E "
+	lddlflags="-shared "
+	cccdlflags='-DPIC -fPIC'
+	;;
 esac
 
 case "$osvers" in
@@ -211,6 +219,12 @@
 	      exit 1
 	      ;;
 
+	7.*)
+	      ldflags="-pthread $ldflags"
+	      # patch according to perl Change 34542
+	      # to take care of bug perl #57458
+	      ;;
+
 	*)
 	      if [ ! -r "$lc_r" ]; then
 	      cat <<EOM >&4