[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/11] libtool: support versioning on OS/2
From: |
KO Myung-Hun |
Subject: |
[PATCH 10/11] libtool: support versioning on OS/2 |
Date: |
Tue, 4 Nov 2014 15:12:45 +0900 |
* build-aux/ltmain.in (func_mode_link): Set major and versuffix.
* m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): Set version_type to windows.
Add a version information to soname_spec.
---
build-aux/ltmain.in | 2 +-
m4/libtool.m4 | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 0d90df9..745b94b 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -6254,7 +6254,7 @@ func_mode_link ()
elif test -n "$soname_spec"; then
# bleh windows
case $host in
- *cygwin* | mingw* | *cegcc*)
+ *cygwin* | mingw* | *cegcc* | *os2*)
func_arith $current - $age
major=$func_arith_result
versuffix=-$major
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 76bc96c..e62e7b4 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -2808,12 +2808,17 @@ openbsd* | bitrig*)
os2*)
libname_spec='$name'
+ version_type=windows
shrext_cmds=.dll
+ need_version=no
need_lib_prefix=no
# OS/2 limits a length of a DLL basename up to 8 characters.
# So there is need to use a short name instead of a original name
# longer than 8 characters. And replace '.' with '_'.
- soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; $ECHO $libname
| cut -b -8 | tr . _`${shared_ext}'
+ soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
+ v=$($ECHO ${release}${versuffix} | tr -d .-);
+ n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
+ $ECHO ${n}${v}`${shared_ext}'
library_names_spec='${libname}_dll.$libext'
dynamic_linker='OS/2 ld.exe'
shlibpath_var=BEGINLIBPATH
--
1.7.3.2
- [PATCH] OS/2 patches, KO Myung-Hun, 2014/11/04
- [PATCH 01/11] libtool: don't eliminate duplications in $postdeps and $predeps on OS/2, KO Myung-Hun, 2014/11/04
- [PATCH 03/11] ltdl: OS/2 uses other APIs to load a DLL than LoadLibrary() on Windows, KO Myung-Hun, 2014/11/04
- [PATCH 02/11] libtool: support to link against static libraries on OS/2, KO Myung-Hun, 2014/11/04
- [PATCH 04/11] libtool: there is no need to relink DLLs on OS/2, KO Myung-Hun, 2014/11/04
- [PATCH 05/11] libtool: set lt_cv_deplibs_check_method to pass_all on OS/2, KO Myung-Hun, 2014/11/04
- [PATCH 06/11] libtool: support -Zxxx options used on OS/2, KO Myung-Hun, 2014/11/04
- [PATCH 07/11] libtool: fix DLL creation/installation/uninstallation on OS/2, KO Myung-Hun, 2014/11/04
- [PATCH 08/11] libtool: add -os2dllname option, KO Myung-Hun, 2014/11/04
- [PATCH 11/11] bootstrap: double quote an expression with a wildcard, KO Myung-Hun, 2014/11/04
- [PATCH 10/11] libtool: support versioning on OS/2,
KO Myung-Hun <=
- [PATCH 09/11] libtool: support -export-symbols and -export-symbols-regex on OS/2, KO Myung-Hun, 2014/11/04
- Re: [PATCH] OS/2 patches, Gary V. Vaughan, 2014/11/04