bug-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: H . J . Lu
Subject: Re: Does libtool really support cross compile?
Date: Wed, 31 Oct 2001 11:26:53 -0800
User-agent: Mutt/1.2.5i

On Wed, Oct 31, 2001 at 08:18:28PM +0100, Guido Draheim wrote:
> 
> please be a bit more specific, what cross compiler do you use? 
> Otherwise, 2.95.x crosscompiling does work smoothly for a lot of 

Does 2.95.x even use libtool?

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

You will see the problem when you have libfoo.la in /usr/lib and pass -lfoo
to libtool for cross compiling. Just tell me what sys_lib_search_path_spec
is used for and do

# cd cpu-vendor-os
# find -name libtool | xargs grep sys_lib_search_path_spec=

in your gcc 3.x build directory. We have been lucky in gcc so far since
there is no libfoo.la in /lib, /usr/lib or /usr/local/lib yet.


H.J.
----
> 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]