From: Alexander Stein Date: Thu, 4 Nov 2010 19:01:43 +0100 Subject: [PATCH] HACK: configure: don't look in /lib for libraries This patch fixes cross compilation. The configure script tries to add /lib to LDPATH so ld tries to link with a wrong libncurses.so which results in the following error message in config.log: /lib/libncurses.so: file not recognized: File format not recognized Also notice the linker warning: arm-none-linux-gnueabi/bin/ld: warning: library search path "/lib" is unsafe for cross-compilation Signed-off-by: Alexander Stein [mkl: make it a minimal patch] I'm just modifying configure here, because it still uses autoconf-2.13 which is incompatible with recent autoconf versions. Signed-off-by: Marc Kleine-Budde --- configure | 30 ------------------------------ 1 files changed, 0 insertions(+), 30 deletions(-) diff --git a/configure b/configure index 8ceb1d5..3baba0b 100755 --- a/configure +++ b/configure @@ -10999,36 +10999,6 @@ fi fi ;; -linux*) # Suse Linux does not follow /usr/lib convention - -if test -n "/lib" ; then - for cf_add_libdir in /lib - do - if test $cf_add_libdir = /usr/lib ; then - : - elif test -d $cf_add_libdir - then - cf_have_libdir=no - if test -n "$LDFLAGS$LIBS" ; then - # a loop is needed to ensure we can add subdirs of existing dirs - for cf_test_libdir in $LDFLAGS $LIBS ; do - if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then - cf_have_libdir=yes; break - fi - done - fi - if test "$cf_have_libdir" = no ; then - test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6 - -echo "${as_me-configure}:11023: testing adding $cf_add_libdir to library-path ..." 1>&5 - - LDFLAGS="-L$cf_add_libdir $LDFLAGS" - fi - fi - done -fi - - ;; sunos3*|sunos4*) if test -d /usr/5lib ; then -- 1.7.2.3