aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-08-08 07:46:59 +0000
committerNIIBE Yutaka <[email protected]>2023-08-08 07:46:59 +0000
commit9bb7a2a1a066b20022714b21ca2ae5ccb9d19d55 (patch)
treedadee0e6274d024090d1e1e8bd749ab55202b9ee /build-aux
parentAdd NEWS entries for 2.5.6 from libassuan 2.5 branch. (diff)
downloadlibassuan-9bb7a2a1a066b20022714b21ca2ae5ccb9d19d55.tar.gz
libassuan-9bb7a2a1a066b20022714b21ca2ae5ccb9d19d55.zip
build: New configure option --with-libtool-modification.
* Makefile.am (EXTRA_DIST): Add build-aux/libtool-patch.sed. * build-aux/libtool-patch.sed: New. * configure.ac (--with-libtool-modification): New. * build-aux/ltmain.sh: Revert our own local modification. -- Fixes-commit: f88eb9e98f491b503f46c7d995c9651f1e46b9e9 GnuPG-bug-id: 6619 Signed-off-by: NIIBE Yutaka <[email protected]>
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
;;
*)