aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2013-06-17 14:11:23 +0000
committerWerner Koch <[email protected]>2013-06-17 14:11:23 +0000
commitca46b9a7bccb2eab085fc45722ffca1210f48223 (patch)
tree13ef926a139f35fc4163512b749366dfe0b396e0
parentSupport building for w64. (diff)
downloadlibgpg-error-ca46b9a7bccb2eab085fc45722ffca1210f48223.tar.gz
libgpg-error-ca46b9a7bccb2eab085fc45722ffca1210f48223.zip
Add hack to have different names for 64 bit Windows DLLs.
* ltmain.sh: Prefix the SO number for W64 with a "6". -- We need to stick to libtool 2.4.2 anyway, thus we take the easy way and hack libtool instead of adding "-release 6" to the Makefile. This also avoids an extra dash before the 6 and thus yields a prettier name than the one produced by the -release option. The header files and def files are supposed to be identical for w32 and w64 thus we don't need to do any special code for them. Having a different namespace for 64 bit DLLs is such a good idea that I hope this or a similar feature will be provided by future libtool versions.
-rw-r--r--ltmain.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/ltmain.sh b/ltmain.sh
index 24e3fd3..07bf696 100644
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -6766,6 +6766,11 @@ 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
@@ -7499,6 +7504,14 @@ 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
;;
*)