[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/9] libtool: set lt_prog_compiler_static to -Bstatic on OS/2
From: |
KO Myung-Hun |
Subject: |
[PATCH 3/9] libtool: set lt_prog_compiler_static to -Bstatic on OS/2 |
Date: |
Sun, 4 Nov 2012 21:13:28 +0900 |
* 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], [CXX], [
# (--disable-auto-import) libraries
m4_if([$1], [GCJ], [],
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ case $host_os in
+ os2*)
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ esac
;;
darwin* | rhapsody*)
# PIC is the default on this platform
@@ -4220,6 +4225,11 @@ m4_if([$1], [CXX], [
# (--disable-auto-import) libraries
m4_if([$1], [GCJ], [],
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ case $host_os in
+ os2*)
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ esac
;;
darwin* | rhapsody*)
@@ -4317,6 +4327,11 @@ m4_if([$1], [CXX], [
# built for inclusion in a dll (and should export symbols for example).
m4_if([$1], [GCJ], [],
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ case $host_os in
+ os2*)
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ esac
;;
hpux9* | hpux10* | hpux11*)
--
1.7.3.2
- [PATCH] OS/2 patches, KO Myung-Hun, 2012/11/04
- [PATCH 1/9] libtool: add -shortname option, KO Myung-Hun, 2012/11/04
- [PATCH 2/9] libtool: don't eliminate duplications in $postdeps and $predeps on OS/2, KO Myung-Hun, 2012/11/04
- [PATCH 3/9] libtool: set lt_prog_compiler_static to -Bstatic on OS/2,
KO Myung-Hun <=
- [PATCH 4/9] ltdl: OS/2 uses other APIs to load a DLL than LoadLibrary() on Windows, KO Myung-Hun, 2012/11/04
- [PATCH 5/9] libtool: there is no need to relink DLLs on OS/2, KO Myung-Hun, 2012/11/04
- [PATCH 6/9] libtool: set lt_cv_deplibs_check_method to pass_all on OS/2, KO Myung-Hun, 2012/11/04
- [PATCH 7/9] libtool: support -Zxxx options used on OS/2, KO Myung-Hun, 2012/11/04
- [PATCH 8/9] libtool: create an import libraries instead of links to the real library on OS/2, KO Myung-Hun, 2012/11/04
- [PATCH 9/9] libtool: fix a problem that it fails to find proper libraries if .la is a dependency on OS/2, KO Myung-Hun, 2012/11/04