summaryrefslogtreecommitdiff
path: root/lang/perl5/patches/patch-co
blob: 61666c12f0888772a9dda16734f467540faaef5d (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
$NetBSD: patch-co,v 1.4 2009/12/14 06:36:57 seb Exp $

--- hints/freebsd.sh.orig	2009-12-06 18:06:01.000000000 +0000
+++ hints/freebsd.sh	2009-12-06 18:06:31.000000000 +0000
@@ -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