summarylogtreecommitdiffstats
path: root/02_multilib.patch
blob: 1dee3b977945f36e7fe4c758d8610b57f011ae54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: workaround for multilib on i486-pc-linux-gnu or sparc-unknown-linux-gnu
Author: NIIBE Yutaka <gniibe@fsij.org>
Reviewed-By: NIIBE Yutaka <gniibe@fsij.org>
Last-Update: 2013-01-25

--- a/configure.ac
+++ b/configure.ac
@@ -86,6 +86,12 @@
 	    enable_objc="yes"
 	fi	
         ;;
+    i?86-*-linux*|sparc*-*-linux*)
+        CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
+        if test "X$LDCONFIG" != "X" -a "X$SED" != "X"; then
+            LDCONFIG_CMD="$LDCONFIG -p | $SED -n -e '/lib64/n' -e '/^	/s/^.*=> //p'"
+        fi
+        ;;
     *linux*)
         CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
         if test "X$LDCONFIG" != "X" -a "X$SED" != "X"; then