[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mingw32 cross-compile: sys_lib_search_path setting insuffient
From: |
Guido Draheim |
Subject: |
Re: mingw32 cross-compile: sys_lib_search_path setting insuffient |
Date: |
Tue, 24 Jul 2001 19:43:39 +0200 |
Sebastien Sable wrote:
>
> Hi,
>
> Guido Draheim <address@hidden> writes:
>
> > The dll of my project does need some function from a
> > a lib installed with the gcc - the libtool has support
> > for this scheme as it uses "$CC --print-search-dirs",
> > then greps it for the "libraries:" line, and puts it
> > into sys_lib_search_path.
> ...
> > So far, so good - but there is a bug.
>
> Could this be the reason of this problem ? :
> [...]
yes, you are trying to link to a lib that is installed in the
cross-tools sys_lib directory. It fails for me just like it
does in your project.
> And if not what can I do to have a more explicit message or at least a
> log of what libtool is trying to do?
>
Sadly, I had been editing libtool to get logs that pointed
me to the actual problem. But don't wait for that - I have
found the actual problem - instead just go and patch what
you have.
a) primary: patch libtool.m4 in your system (share/aclocal/)
look for the "--print-search-dirs" and check the tail of
the line for sed-command "s/;/ /g" - replace that one
with "s/:/ /g" or even better "s/$PATH_SEPARATOR/ /g".
The next aclocal-run will bring it into your project,
and autoconf into your configure.
b) sometimes I add some lines to the end of my configure.ac
that gets executed after "configure" has run - then I
do patch the generated libtool. A good thing is the
decribed "XXXsys_libXXX=`echo XXXsys_libXXX | sed "s/:/ /g"`
that needs to be patched in.
Try it, and see your stuff work for crosscompiling to mingw!
@ Libtool-ML
please anyone who has write-access to CVS, change the
libtool.m4, i.e.
/-print-search-dirs/s,/;/,/$PATH_SEPARATOR/,
the ";" is only true for mingw native-build,
and not for cross-compiling from unixish systems.
thanks, guido <standard disclaimer>
___________________________________________________________
Guido Draheim, R&D <address@hidden>
Tektronix Berlin, MPT E7 "Edel sei der Mensch,
tel: +49 -30/ 386-23153 hilfreich und gut" --G.