summaryrefslogtreecommitdiffstats
path: root/external/redland/raptor/raptor-freebsd.patch.1
blob: 349f3a197b8a22fea61205c3da28dfafd24c9048 (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
Usual patch to produce Linux-like .so files on FreeBSD

--- a/build/ltmain.sh	2008-02-02 22:28:24.000000000 +0900
+++ b/build/ltmain.sh	2008-07-08 11:58:42.000000000 +0900
@@ -7341,9 +7341,9 @@
 	    revision="$number_revision"
 	    ;;
 	  freebsd-aout|freebsd-elf|qnx|sunos)
-	    current="$number_major"
-	    revision="$number_minor"
-	    age="0"
+	    current=`expr $number_major + $number_minor`
+	    age="$number_minor"
+	    revision="$number_revision"
 	    ;;
 	  irix|nonstopux)
 	    func_arith $number_major + $number_minor
@@ -7420,8 +7420,8 @@
 	  ;;
 
 	freebsd-elf)
-	  major=".$current"
-	  versuffix=".$current"
+	  major=.`expr $current - $age`
+	  versuffix="$major.$age.$revision"
 	  ;;
 
 	irix | nonstopux)