libtool
[Top][All Lists]
Advanced

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

Re: Does libtool really support cross compile?


From: Guido Draheim
Subject: Re: Does libtool really support cross compile?
Date: Wed, 31 Oct 2001 20:18:28 +0100

please be a bit more specific, what cross compiler do you use? 
Otherwise, 2.95.x crosscompiling does work smoothly for a lot of 
platforms under my hands, but I did not check 3.0.x so far. What
version is that "libtool in gcc 3.x". I guess it is not the fault
of libtool as seen in cvs, but feel free to patch your own 
libtool over there - may be use the postconfigured patch-macros 
as seen in the ac-archive as a guideline. cheers, guido

Es schrieb "H . J . Lu":
> 
> 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"
> 
> _______________________________________________
> Libtool mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/libtool

-- 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)



reply via email to

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