bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Does libtool really support cross compile?


From: H . J . Lu
Subject: Does libtool really support cross compile?
Date: Wed, 31 Oct 2001 11:04:48 -0800
User-agent: Mutt/1.2.5i

Does libtool really support cross compile? Libtool should never, ever set

sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"

when generating binaries for the cross target. The current libtool in gcc
3.x does it wrong. I am enclosing a patch for ltconfig here. I don't know
how to fix libtool.



H.J.
---
--- ltconfig.cross      Sat May 19 00:19:10 2001
+++ ltconfig    Mon Oct 29 15:02:29 2001
@@ -2123,6 +2123,12 @@ case $ltmain in
     ;;
   esac
 
+  if test $host != $build; then
+    # Don't even think about setting sys_lib_search_path_spec for cross
+    # compiling.
+    sys_lib_search_path_spec=
+  fi
+
   if test -z "$tagname"; then
     trap "$rm \"$ofile\"; exit 1" 1 2 15
     echo "creating $ofile"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]