aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/libtool-patch.sed33
-rwxr-xr-xbuild-aux/ltmain.sh13
2 files changed, 33 insertions, 13 deletions
diff --git a/build-aux/libtool-patch.sed b/build-aux/libtool-patch.sed
new file mode 100644
index 0000000..f0e6da9
--- /dev/null
+++ b/build-aux/libtool-patch.sed
@@ -0,0 +1,33 @@
+#
+# This is a sed script to patch the generated libtool
+#
+/^[ \t]*# bleh windows$/{
+:loop0
+s/^[ \t]*esac$/\0/
+t done0
+s/^[ \t]*case \$host in$/\0/
+t insert0
+n
+b loop0
+:insert0 n
+i\
+ x86_64-*mingw32*)
+i\
+ func_arith $current - $age
+i\
+ major=$func_arith_result
+i\
+ versuffix="6-$major"
+i\
+ ;;
+b loop0
+:done0
+}
+/^[ \t]*# extension on DOS 8.3 file.*systems.$/{
+:loop1
+s/^[ \t]*\(versuffix=\)\(.*\)\(-$major\)\(.*\)$/\t case \$host in\n\t x86_64-*mingw32*)\n\t \1\26\3\4\n\t ;;\n\t *)\n\t \1\2\3\4\n\t ;;\n\t esac/
+t done1
+n
+b loop1
+:done1
+}
diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh
index f8c3614..859599a 100755
--- a/build-aux/ltmain.sh
+++ b/build-aux/ltmain.sh
@@ -6766,11 +6766,6 @@ func_mode_link ()
elif test -n "$soname_spec"; then
# bleh windows
case $host in
- x86_64-*mingw32*)
- func_arith $current - $age
- major=$func_arith_result
- versuffix="6-$major"
- ;;
*cygwin* | mingw* | *cegcc*)
func_arith $current - $age
major=$func_arith_result
@@ -7504,14 +7499,6 @@ func_mode_link ()
func_arith $current - $age
major=$func_arith_result
versuffix="-$major"
- case $host in
- x86_64-*mingw32*)
- versuffix="6-$major"
- ;;
- *)
- versuffix="-$major"
- ;;
- esac
;;
*)