summaryrefslogtreecommitdiffstats
path: root/package/gauche/0001-fix-so-suffix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/gauche/0001-fix-so-suffix.patch')
-rw-r--r--package/gauche/0001-fix-so-suffix.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/gauche/0001-fix-so-suffix.patch b/package/gauche/0001-fix-so-suffix.patch
new file mode 100644
index 0000000000..b65e269981
--- /dev/null
+++ b/package/gauche/0001-fix-so-suffix.patch
@@ -0,0 +1,31 @@
+With uclibc or musl configuration, $host does not match to '*-linux-gnu*'.
+I touch configure directly instead of configure.ac because autoreconf
+failed by version mismatch of autotools.
+
+Signed-off-by: Hiroshi Kawashima <kei-k@ca2.so-net.ne.jp>
+
+diff -ur a/configure b/configure
+--- a/configure 2014-07-20 15:15:05.000000000 +0900
++++ b/configure 2015-10-20 21:52:32.791442291 +0900
+@@ -6843,7 +6843,7 @@
+ SHLIB_MAIN_LDFLAGS=""
+ SHLIB_OK=ok
+ ;;
+- *-linux-gnu*|*-*-gnu*|*freebsd*|*dragonfly*)
++ *-linux-*|*-*-gnu*|*freebsd*|*dragonfly*)
+ SHLIB_SO_CFLAGS="-fPIC"
+ SHLIB_SO_LDFLAGS="$rpath -shared -o"
+ SHLIB_SO_SUFFIX="so"
+
+diff -ur a/configure.ac b/configure.ac
+--- a/configure.ac 2015-10-21 21:33:17.370000200 +0900
++++ b/configure.ac 2015-10-21 21:33:39.784110527 +0900
+@@ -572,7 +572,7 @@
+ SHLIB_MAIN_LDFLAGS=""
+ SHLIB_OK=ok
+ ;;
+- *-linux-gnu*|*-*-gnu*|*freebsd*|*dragonfly*)
++ *-linux-*|*-*-gnu*|*freebsd*|*dragonfly*)
+ SHLIB_SO_CFLAGS="-fPIC"
+ SHLIB_SO_LDFLAGS="$rpath -shared -o"
+ SHLIB_SO_SUFFIX="so"
OpenPOWER on IntegriCloud