[PATCH] OS/2 patches

2012-11-04 Thread KO Myung-Hun
Hi/2. These are the patches for OS/2. Review, please.

[PATCH 1/9] libtool: add -shortname option

2012-11-04 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: Add news for -shortname. * build-aux/ltmain.in(func_mode_help): Add a description for -shortname. (fu

[PATCH 2/9] libtool: don't eliminate duplications in $postdeps and $predeps on OS/2

2012-11-04 Thread KO Myung-Hun
* build-aux/ltmain.h(libtool_validate_options): Add *os2* to the list. --- build-aux/ltmain.in |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 4e53936..ede32eb 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -4

[PATCH 3/9] libtool: set lt_prog_compiler_static to -Bstatic on OS/2

2012-11-04 Thread KO Myung-Hun
* m4/libtool.m4(_LT_COMPILER_PIC): Same as the title. --- m4/libtool.m4 | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index f269fc4..3d36d5d 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -3901,6 +3901,11 @@ m4_if([$1], [CX

[PATCH 4/9] ltdl: OS/2 uses other APIs to load a DLL than LoadLibrary() on Windows

2012-11-04 Thread KO Myung-Hun
*m4/ltdl.m4: Remove os2* from a list for loadlibrary.la. --- m4/ltdl.m4 |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/m4/ltdl.m4 b/m4/ltdl.m4 index b129716..28beadb 100644 --- a/m4/ltdl.m4 +++ b/m4/ltdl.m4 @@ -703,7 +703,7 @@ darwin[[1567]].*) beos*) LT_DLLOADERS="$

[PATCH 5/9] libtool: there is no need to relink DLLs on OS/2

2012-11-04 Thread KO Myung-Hun
*build-aux/ltmain.in(func_mode_link): Set need_relink to no on OS/2. --- build-aux/ltmain.in |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index ede32eb..10396a7 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -609

[PATCH 6/9] libtool: set lt_cv_deplibs_check_method to pass_all on OS/2

2012-11-04 Thread KO Myung-Hun
*m4/libtool.m4(_LT_CHECK_MAGIC_METHOD): Same as the title. --- m4/libtool.m4 |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 3d36d5d..3a80989 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -3345,6 +3345,9 @@ sysv4 | sysv4.3*) tpf*)

[PATCH 7/9] libtool: support -Zxxx options used on OS/2

2012-11-04 Thread KO Myung-Hun
*build-aux/ltmain.in(fund_mode_link): Add -Z* case. --- build-aux/ltmain.in | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 10396a7..3fcaed5 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -5272,6 +52

[PATCH 8/9] libtool: create an import libraries instead of links to the real library on OS/2

2012-11-04 Thread KO Myung-Hun
Link is not supported on OS/2. *build-aux/ltmain.in(fund_mode_install): Create an import library. (fund_mode_link): Likewise. --- build-aux/ltmain.in | 23 --- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 3fca

[PATCH 9/9] libtool: fix a problem that it fails to find proper libraries if .la is a dependency on OS/2

2012-11-04 Thread KO Myung-Hun
*build-aux/ltmain.in(func_mode_link): Same as the title. --- build-aux/ltmain.in | 103 +++ 1 files changed, 79 insertions(+), 24 deletions(-) diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index bf989d7..7de3676 100644 --- a/build-aux/ltma