From: Peter Rosin Date: Tue, 12 Aug 2008 06:50:11 +0000 (+0200) Subject: Disable nocase handling for cross compiles. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5b9cabda803d10ba01b7b38e2731d4927e4c0024;p=thirdparty%2Flibtool.git Disable nocase handling for cross compiles. * libltdl/m4/libtool.m4 (_LT_CHECK_MAGIC_METHOD): Disable nocase handling for cross compiles. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index e4e548405..2af489f04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-08-12 Peter Rosin + + * libltdl/m4/libtool.m4 (_LT_CHECK_MAGIC_METHOD): Disable nocase + handling for cross compiles. + 2008-08-09 Peter Rosin * tests/export.at [MSVC]: dllimport all imported variables. diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index a0da7a5a0..4df3cafec 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -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