summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorKO Myung-Hun <komh@chollian.net>2014-11-04 11:12:47 +0000
committerGary V. Vaughan <gary@gnu.org>2014-11-04 11:29:42 +0000
commitf3b6ca323ec4423faf5f8c7d44be9e2008869e6b (patch)
tree41d00e927d54d29fd3c9a3d956341bc28f37fd4b /m4
parent7ac7bd1c79f077aa0a793b0e386a1eb946dd6adc (diff)
downloadlibtool-f3b6ca323ec4423faf5f8c7d44be9e2008869e6b.tar.gz
libtool: support to link against static libraries on OS/2.
* m4/libtool.m4 (_LT_COMPILER_PIC): Set lt_prog_compiler_static to $wl-static. Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Diffstat (limited to 'm4')
-rw-r--r--m4/libtool.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 1c6166b4..24ac398e 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -4060,6 +4060,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)='$wl-static'
+ ;;
+ esac
;;
darwin* | rhapsody*)
# PIC is the default on this platform
@@ -4379,6 +4384,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)='$wl-static'
+ ;;
+ esac
;;
darwin* | rhapsody*)
@@ -4476,6 +4486,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)='$wl-static'
+ ;;
+ esac
;;
hpux9* | hpux10* | hpux11*)