]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Disable nocase handling for cross compiles.
authorPeter Rosin <peda@lysator.liu.se>
Tue, 12 Aug 2008 06:50:11 +0000 (08:50 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Tue, 13 Jan 2009 09:04:07 +0000 (10:04 +0100)
* libltdl/m4/libtool.m4 (_LT_CHECK_MAGIC_METHOD): Disable nocase
handling for cross compiles.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
libltdl/m4/libtool.m4

index e4e5484058c5cc3f4840b352b74a89ff4d7653a1..2af489f041b22912a5ba004cc9731cd2e2d7b6a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-12  Peter Rosin  <peda@lysator.liu.se>
+
+       * libltdl/m4/libtool.m4 (_LT_CHECK_MAGIC_METHOD): Disable nocase
+       handling for cross compiles.
+
 2008-08-09  Peter Rosin  <peda@lysator.liu.se>
 
        * tests/export.at [MSVC]: dllimport all imported variables.
index a0da7a5a0d0ee8067899f9512a8109b56e739296..4df3cafecd0b6a5e34225b75d6d6f4aaaa45ee14 100644 (file)
@@ -3175,21 +3175,19 @@ tpf*)
 esac
 ])
 
-case $host_os in
-cygwin* | mingw* | pw32*)
-  if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
-    file_magic_glob=
-    want_nocaseglob=yes
-  else
-    file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
-    want_nocaseglob=no
-  fi
-  ;;
-*)
-  file_magic_glob=
-  want_nocaseglob=no
-  ;;
-esac
+file_magic_glob=
+want_nocaseglob=no
+if test "$build" = "$host"; then
+  case $host_os in
+  cygwin* | mingw* | pw32*)
+    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
+      want_nocaseglob=yes
+    else
+      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
+    fi
+    ;;
+  esac
+fi
 
 file_magic_cmd=$lt_cv_file_magic_cmd
 deplibs_check_method=$lt_cv_deplibs_check_method