summaryrefslogtreecommitdiff
path: root/binutils/patches/162_fpic_s390x.diff
blob: d848a9fd90e2195307d892ced6ff1f0589e4732f (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
# DP: Fix s390x build.

2011-08-24  Aurelien Jarno  <aurelien@aurel32.net>

	* config/picflag.m4: use -FPIC on s390x.
	* libiberty/configure: regenerate.

--- binutils-2.21.53.20110823.orig/config/picflag.m4
+++ binutils-2.21.53.20110823/config/picflag.m4
@@ -51,6 +51,9 @@
     m68k-*-*)
 	$1=-fpic
 	;;
+    s390x*-*-*)
+	$1=-fPIC
+	;;
     s390*-*-*)
 	$1=-fpic
 	;;
--- binutils-2.21.53.20110823.orig/libiberty/configure
+++ binutils-2.21.53.20110823/libiberty/configure
@@ -4891,6 +4891,9 @@
     m68k-*-*)
 	PICFLAG=-fpic
 	;;
+    s390x*-*-*)
+	PICFLAG=-fPIC
+	;;
     s390*-*-*)
 	PICFLAG=-fpic
 	;;