summaryrefslogtreecommitdiff
path: root/devel/swig20/files/patch-configure
blob: 29337b70d4e1ed912a41b070fe103e5da7ab739c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- configure.orig	2014-02-09 22:21:00 UTC
+++ configure
@@ -6420,8 +6420,8 @@
 		fi ;;
 	*-*-linux*) LDSHARED="gcc -shared";;
 	*-*-dgux*) LDSHARED="ld -G";;
-	*-*-freebsd3*) LDSHARED="gcc -shared";;
-	*-*-freebsd* | *-*-openbsd*) LDSHARED="ld -Bshareable";;
+	*-*-dragonfly* | *-*-freebsd*) LDSHARED="$CC -shared";;
+	*-*-openbsd*) LDSHARED="ld -Bshareable";;
 	*-*-netbsd*)
 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
 		then
@@ -6489,8 +6489,8 @@
 		 else CCSHARED="+z"
 		 fi;;
 	*-*-linux*) CCSHARED="-fpic";;
-	*-*-freebsd* | *-*-openbsd*) CCSHARED="-fpic";;
-	*-*-netbsd*) CCSHARED="-fPIC";;
+	*-*-openbsd*) CCSHARED="-fpic";;
+	*-*-dragonfly* | *-*-freebsd* | *-*-netbsd*) CCSHARED="-fPIC";;
 	*-sco-sysv*) CCSHARED="-KPIC -dy -Bdynamic";;
 	*-*-irix6*)  case $CC in
 		   *gcc*) CCSHARED="-shared";;