[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 8/9] libtool: create an import libraries instead of links to the
From: |
KO Myung-Hun |
Subject: |
[PATCH 8/9] libtool: create an import libraries instead of links to the real library on OS/2 |
Date: |
Sun, 4 Nov 2012 21:13:33 +0900 |
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 3fcaed5..bf989d7 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -2385,8 +2385,17 @@ func_mode_install ()
# so we also need to try rm && ln -s.
for linkname
do
- test "$linkname" != "$realname" \
- && func_show_eval "(cd $destdir && { $LN_S -f $realname
$linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
+ if test "$linkname" != "$realname"; then
+ case $host_os in
+ os2*)
+ # Create import libraries instead of links on OS/2
+ func_show_eval "(emximp -o $destdir/$linkname
$dir/${linkname%%_dll.$libext}.def)"
+ ;;
+ *)
+ func_show_eval "(cd $destdir && { $LN_S -f $realname
$linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
+ ;;
+ esac
+ fi
done
fi
@@ -7997,7 +8006,15 @@ EOF
# Create links to the real library.
for linkname in $linknames; do
if test "$realname" != "$linkname"; then
- func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S
"$realname" "$linkname")' 'exit $?'
+ case $host_os in
+ os2*)
+ # Create import libraries instead of links on OS/2
+ func_show_eval '(emximp -o $output_objdir/$linkname
$output_objdir/$libname.def)' 'exit $?'
+ ;;
+ *)
+ func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S
"$realname" "$linkname")' 'exit $?'
+ ;;
+ esac
fi
done
--
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, 2012/11/04
- [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 <=
- [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