Package: hylafax / 3:6.0.6-5

806_sparc64_build.patch Patch series | download
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
Author: 
Description: Change -fpic to -fPIC on sparc64 architecture
Index: hylafax-6.0.6/configure
===================================================================
--- hylafax-6.0.6.orig/configure	2012-06-17 14:17:40.001595377 +0200
+++ hylafax-6.0.6/configure	2012-06-17 14:17:40.245596596 +0200
@@ -3463,10 +3463,18 @@
 	    USE_RPATH=''
 	fi
 	DSOSUF=so
-	DSOOPTS='-shared -fpic -Wl,-soname,$@'
-	LLDOPTS=$USE_RPATH
-	GCOPTS="${GCOPTS} -fpic"
-	GCXXOPTS="${GCXXOPTS} -fpic"
+	if dpkg-architecture -esparc64 || dpkg-architecture -es390 || dpkg-architecture -es390x
+	then
+	    DSOOPTS='-shared -fPIC -Wl,-soname,$@'
+	    LLDOPTS=$USE_RPATH
+	    GCOPTS="${GCOPTS} -fPIC"
+	    GCXXOPTS="${GCXXOPTS} -fPIC"
+	else
+	    DSOOPTS='-shared -fpic -Wl,-soname,$@'
+	    LLDOPTS=$USE_RPATH
+	    GCOPTS="${GCOPTS} -fpic"
+	    GCXXOPTS="${GCXXOPTS} -fpic"
+	fi
 	DSO=LINUX
 	CheckCCDSO()
 	{