aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux/libtool-patch.sed
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/libtool-patch.sed')
-rw-r--r--build-aux/libtool-patch.sed33
1 files changed, 33 insertions, 0 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
+}