[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cross-building mingw32 libtool-2.2.6a uses /usr/bin/gfortan -print-searc
From: |
Jan Nieuwenhuizen |
Subject: |
cross-building mingw32 libtool-2.2.6a uses /usr/bin/gfortan -print-search-dirs |
Date: |
Thu, 19 Feb 2009 10:29:48 +0100 |
Hi,
When creating a cross-built libtool-2.2.6a for mingw32, the
sys_lib_search_path_spec, as set by this snippet
mingw* | cegcc*)
# MinGW DLLs use traditional 'lib' prefix
soname_spec='${libname}`echo ${release} | $SED -e
's/[[.]]/-/g'`${versuffix}${shared_ext}'
sys_lib_search_path_spec=`$CC -print-search-dirs | $SED '/^libraries:/!d;
s///; s,=/,/,g'`
instead of using i686-mingw32-gcc, uses /usr/bin/gfortran for CC,
if that program happens to be installed. This results in a
broken sys_lib_search_path_spec without the cross-compiler's
lib dirs, and also includes /usr/lib; something you do not
want when cross-compiling.
See the attached bash -x configure log.
As a workaround, one can populate the cross config.cache with
ac_cv_prog_F77=no
ac_cv_prog_FC=no
ac_cv_prog_GCJ=no
Greetings,
Jan.
Result libtool script with gfortran installed
# Compile-time system search path for libraries.
sys_lib_search_path_spec=" =./x86_64-linux-gnu/4.3.3/ ./../lib/
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/ /usr/lib/gcc/x86_64-linux-gnu/4.3.3/
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/4.3.3/
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../x86_64-linux-gnu/lib/../lib/
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../x86_64-linux-gnu/4.3.3/
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib/
/lib/x86_64-linux-gnu/4.3.3/ /lib/../lib/ /usr/lib/x86_64-linux-gnu/4.3.3/
/usr/lib/../lib/ ./
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../x86_64-linux-gnu/lib/
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../ /lib/ /usr/lib/"
expected result
sys_lib_search_path_spec="
/home/janneke/tmp/gub/target/mingw/root/usr/cross/lib/gcc/i686-mingw32/4.1.1/
/home/janneke/tmp/gub/target/mingw/root/usr/lib/gcc/i686-mingw32/4.1.1/
/home/janneke/tmp/gub/target/mingw/root/usr/cross/lib/gcc/i686-mingw32/4.1.1/../../../../i686-mingw32/lib/i686-mingw32/4.1.1/
/home/janneke/tmp/gub/target/mingw/root/usr/cross/lib/gcc/i686-mingw32/4.1.1/../../../../i686-mingw32/lib/
/home/janneke/tmp/gub/target/mingw/root/usr/lib/i686-mingw32/4.1.1/
/home/janneke/tmp/gub/target/mingw/root/usr/lib/"
--
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org
libtool-gfortran.log.gz
Description: GNU Zip compressed data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- cross-building mingw32 libtool-2.2.6a uses /usr/bin/gfortan -print-search-dirs,
Jan Nieuwenhuizen <=