Es schrieb "H . J . Lu": > > The problem I am running into is kde 3.0-alpha1. Yes, I am cross compiling > kde from RedHat 7.1/x86 to a different Linux arch. On RedHat 7.1/x86, > > # ls -l /usr/lib/libjpeg.* > -rw-r--r-- 1 root root 165144 Dec 11 2000 /usr/lib/libjpeg.a > -rwxr-xr-x 1 root root 470 Dec 11 2000 /usr/lib/libjpeg.la > lrwxrwxrwx 1 root root 17 Apr 5 2001 /usr/lib/libjpeg.so -> >libjpeg.so.62.0.0 > lrwxrwxrwx 1 root root 17 Apr 5 2001 /usr/lib/libjpeg.so.62 -> >libjpeg.so.62.0.0 > -rwxr-xr-x 1 root root 140596 Dec 11 2000 /usr/lib/libjpeg.so.62.0.0 > > # /bin/sh ../libtool --mode=link ... -ljpeg ... > > was turned into > > # /bin/sh ../libtool --mode=link ... /usr/lib/libjpeg.so ... > > It is not right. > > H.J.
ouch. Okay, however I do not have enough time to have a check myself, anyway, from my viewpoint, it should be fixed for libtool-head with a patch like the following. I did not test it even in a single run, but one might use it as a guideline. HTH, cheers, -- guido Edel sei der Mensch, hilfreich und gut GCS/E/S/P C++$++++ ULHS L++w- N++@ d(+-) s+a- r+@>+++ y++ 5++X- (geekcode)
Index: libtool.m4 =================================================================== RCS file: /cvsroot/libtool/libtool/libtool.m4,v retrieving revision 1.242 diff -u -r1.242 libtool.m4 --- libtool.m4 2001/10/28 12:22:38 1.242 +++ libtool.m4 2001/11/01 00:44:10 @@ -1410,7 +1410,17 @@ dynamic_linker=no ;; esac -AC_MSG_RESULT([$dynamic_linker]) +if test "$cross_compiling" = "yes" ; then + if test "$GCC" = "yes" ; then + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e +"s/^libraries://" -e 's/:/ /g'` + AC_MSG_RESULT([$dynamic_linker (crosscompiling gcc)]) + else + sys_lib_seach_path_spec=`echo $sys_lib_search_path_spec | sed -e +"s,/lib/,/$host_cpu-$host_os-lib/,g'` + AC_MSG_RESULT([$dynamic_linker (crosscompiling w/o gcc)]) + fi +else + AC_MSG_RESULT([$dynamic_linker]) +fi test "$dynamic_linker" = no && can_build_shared=no ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER