[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/10] Create import libraries instead of links to the real libra
From: |
KO Myung-Hun |
Subject: |
[PATCH 09/10] Create import libraries instead of links to the real library on OS/2 |
Date: |
Thu, 23 Feb 2012 00:02:02 +0900 |
---
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 ()
# 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
@@ -7839,7 +7848,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 supports, KO Myung-Hun, 2012/02/22
- [PATCH 01/10] Add -shortname option., KO Myung-Hun, 2012/02/22
- [PATCH 02/10] Don't eliminate duplications in $postdeps and $predeps on OS/2, KO Myung-Hun, 2012/02/22
- [PATCH 03/10] Set lt_prog_compiler_static to -Bstatic on OS/2, KO Myung-Hun, 2012/02/22
- [PATCH 05/10] OS/2 uses ld inherited from GNU ld, KO Myung-Hun, 2012/02/22
- [PATCH 04/10] OS/2 uses other APIs to load a DLL than LoadLibrary() on Windows., KO Myung-Hun, 2012/02/22
- [PATCH 06/10] There is no need to relink DLLs on OS/2, KO Myung-Hun, 2012/02/22
- [PATCH 07/10] Set lt_cv_deplibs_check_method to pass_all on OS/2, KO Myung-Hun, 2012/02/22
- [PATCH 08/10] Support -Zxxx options used on OS/2, KO Myung-Hun, 2012/02/22
- [PATCH 09/10] Create import libraries instead of links to the real library on OS/2,
KO Myung-Hun <=
- [PATCH 10/10] Fix a problem that it fails to find proper libraries if .la is a dependency on OS/2, KO Myung-Hun, 2012/02/22