[PATCH] OS/2 supports

2012-02-22 Thread KO Myung-Hun
Hi/2. I attach the patches for OS/2 supports. Review, please.

[PATCH 01/10] Add -shortname option.

2012-02-22 Thread KO Myung-Hun
OS/2 limits a length of a DLL base name up to 8 characters. If a name of a shared library is longer than 8 characters, OS/2 cannot load it. So the option to specify a short name is needed. --- NEWS |1 + build-aux/ltmain.m4sh | 11 +++ doc/libtool.texi |4 ++

[PATCH 02/10] Don't eliminate duplications in $postdeps and $predeps on OS/2

2012-02-22 Thread KO Myung-Hun
--- build-aux/ltmain.m4sh |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index 7017dc6..c3b02e6 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -384,7 +384,7 @@ M4SH_GETOPTS( test : = "$debug_cmd" || func

[PATCH 03/10] Set lt_prog_compiler_static to -Bstatic on OS/2

2012-02-22 Thread KO Myung-Hun
--- m4/libtool.m4 | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index a8c43c0..94bddcb 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -3923,6 +3923,11 @@ m4_if([$1], [CXX], [ # (--disable-auto-import) libraries

[PATCH 05/10] OS/2 uses ld inherited from GNU ld

2012-02-22 Thread KO Myung-Hun
--- m4/libtool.m4 |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 94bddcb..10bfb81 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -4674,6 +4674,9 @@ dnl Note also adjust exclude_expsyms for C++ above. with_gnu_ld=no fi

[PATCH 04/10] OS/2 uses other APIs to load a DLL than LoadLibrary() on Windows.

2012-02-22 Thread KO Myung-Hun
--- m4/ltdl.m4 |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/m4/ltdl.m4 b/m4/ltdl.m4 index 6cb5727..7987c05 100644 --- a/m4/ltdl.m4 +++ b/m4/ltdl.m4 @@ -703,7 +703,7 @@ darwin[[1567]].*) beos*) LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.

[PATCH 06/10] There is no need to relink DLLs on OS/2

2012-02-22 Thread KO Myung-Hun
--- build-aux/ltmain.m4sh |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index c3b02e6..5ec111d 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -5940,7 +5940,7 @@ func_mode_link () if test -n "$libra

[PATCH 07/10] Set lt_cv_deplibs_check_method to pass_all on OS/2

2012-02-22 Thread KO Myung-Hun
--- m4/libtool.m4 |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 10bfb81..998ee9d 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -3373,6 +3373,9 @@ sysv4 | sysv4.3*) tpf*) lt_cv_deplibs_check_method=pass_all ;; +os2*) + lt_

[PATCH 08/10] Support -Zxxx options used on OS/2

2012-02-22 Thread KO Myung-Hun
--- build-aux/ltmain.m4sh | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index 5ec111d..8cae2c3 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -5114,6 +5114,17 @@ func_mode_link () contin

[PATCH 09/10] Create import libraries instead of links to the real library on OS/2

2012-02-22 Thread KO Myung-Hun
--- build-aux/ltmain.m4sh | 23 --- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index 8cae2c3..690b44b 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -2240,8 +2240,17 @@ func_mode_install ()

[PATCH 10/10] Fix a problem that it fails to find proper libraries if .la is a dependency on OS/2

2012-02-22 Thread KO Myung-Hun
--- build-aux/ltmain.m4sh | 103 +--- 1 files changed, 79 insertions(+), 24 deletions(-) diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index 690b44b..c721be2 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -5479,33 +5479,