summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorKO Myung-Hun <komh@chollian.net>2014-11-04 12:27:05 +0000
committerGary V. Vaughan <gary@gnu.org>2014-11-04 15:11:38 +0000
commitee9ff7b399246cd5fd75127c174b96f9d3ea98dc (patch)
tree8ebd734db62316c692868f970a939fa3ca9ac11c /m4
parent4ee10a1e431ea3ddaf795d793a5a27189d3a115e (diff)
downloadlibtool-ee9ff7b399246cd5fd75127c174b96f9d3ea98dc.tar.gz
libtool: add -os2dllname option.
On OS/2, if there are many DLLs whose prefix is the same and very long, the resulting DLLs are overwritten. Provide a new option to force a DLL name. * build-aux/ltmain.in (func_mode_help): Add a description for -os2dllname. (func_mode_link): Add -os2dllname. * doc/libtool.texi: Document it. * NEWS: Update. Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Diffstat (limited to 'm4')
-rw-r--r--m4/libtool.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 3efdfa66..b2e1ec7e 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -2811,7 +2811,7 @@ os2*)
shrext_cmds=.dll
need_lib_prefix=no
# OS/2 can only load a DLL with a base name of 8 characters or less.
- soname_spec='`eval $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
+ soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
library_names_spec='${libname}_dll.$libext'
dynamic_linker='OS/2 ld.exe'
shlibpath_var=BEGINLIBPATH