applied patch fixing GCC 4.1 build submitted by the Debian SDCC maintainer Aurelien...
[fw/sdcc] / sim / ucsim / libtool
index cde8c2464c17b4d7022466c6b064540ea55c01c3..0530d16134c3c4b16daa57e15bc20798fc79374e 100755 (executable)
@@ -35,7 +35,7 @@ if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
 # ### BEGIN LIBTOOL CONFIG
 
-# Libtool was configured on host preston:
+# Libtool was configured on host toto.private.network:
 
 # Shell to use when invoking shell scripts.
 SHELL="/bin/sh"
@@ -54,7 +54,7 @@ fast_install=yes
 
 # The host system.
 host_alias=
-host=i686-pc-linux-gnu
+host=x86_64-unknown-linux-gnu
 
 # An echo program that does not interpret backslashes.
 echo="echo"
@@ -82,7 +82,7 @@ NM="/usr/bin/nm -B"
 STRIP=strip
 
 # Used to examine libraries when file_magic_cmd begins "file"
-MAGIC_CMD=file
+MAGIC_CMD=/usr/bin/file
 
 # Used on cygwin: DLL creation program.
 DLLTOOL="dlltool"
@@ -191,7 +191,7 @@ old_striplib="strip --strip-debug"
 striplib="strip --strip-unneeded"
 
 # Method to check whether dependent libraries are shared objects.
-deplibs_check_method="pass_all"
+deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )"
 
 # Command to use when deplibs_check_method == file_magic.
 file_magic_cmd="\$MAGIC_CMD"