]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4: better use of $target instead of $host to support
authorGary V. Vaughan <gary@gnu.org>
Fri, 26 Nov 1999 00:34:17 +0000 (00:34 +0000)
committerGary V. Vaughan <gary@gnu.org>
Fri, 26 Nov 1999 00:34:17 +0000 (00:34 +0000)
cross compilation.
Reported by Sam Latinga <slouken@devolution.com>

ChangeLog
libtool.m4

index e4e66d11eff7838ff1eef98f3d8ea1e8e81ca811..5cb509f3f2d798fa41a8086791bcdac511080833 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-11-26  Gary V. Vaughan  <gary@oranda.demon.co.uk>
+
+       * libtool.m4:  better use of $target instead of $host to support
+       cross compilation.
+       Reported by Sam Latinga <slouken@devolution.com>
+
 1999-11-16  Thomas Tanner  <tanner@ffii.org>
 
        * configure.in: generate ltconfig and ltmain.sh before configuring
index 0bf8031e38d4c9dcff86c1cda2ceb3a9789f5f0b..638b28404ef7c16d04f6ce806d75c32bf61b0fc8 100644 (file)
@@ -36,7 +36,7 @@ AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
-$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
+$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $target \
 || AC_MSG_ERROR([libtool configure failed])
 
 # Reload cache, that may have been modified by ltconfig
@@ -108,7 +108,7 @@ test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
 
 # Some flags need to be propagated to the compiler or linker for good
 # libtool support.
-case "$host" in
+case "$target" in
 *-*-irix6*)
   # Find out which ABI we are using.
   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
@@ -154,7 +154,7 @@ ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
       DllMain (0, 0, 0);],
       [lt_cv_need_dllmain=yes],[lt_cv_need_dllmain=no])])
 
-  case "$host/$CC" in
+  case "$target/$CC" in
   *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
     # old mingw systems require "-dll" to link a DLL, while more recent ones
     # require "-mdll"
@@ -370,7 +370,7 @@ ac_prog=ld
 if test "$ac_cv_prog_gcc" = yes; then
   # Check if gcc -print-prog-name=ld gives a path.
   AC_MSG_CHECKING([for ld used by GCC])
-  case $host in
+  case $target in
   *-*-mingw*)
     # gcc leaves a trailing carriage return which upsets mingw
     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
@@ -612,7 +612,7 @@ AC_SUBST(NM)
 AC_DEFUN(AC_CHECK_LIBM,
 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 LIBM=
-case "$host" in
+case "$target" in
 *-*-beos* | *-*-cygwin*)
   # These system don't have libm
   ;;