libtool
[Top][All Lists]
Advanced

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

Re: dll cross-compile, .libs/impgen is a win-exe, not a linux-binary


From: Guido Draheim
Subject: Re: dll cross-compile, .libs/impgen is a win-exe, not a linux-binary
Date: Wed, 20 Jun 2001 03:23:18 +0200

What is HOST_CC ? It has no default, and cross-gcc is the wrong cc.
Did now try with HOST_CC=/usr/bin/cc to get a working impgen.
Did not work either - look for the ".libs/.libs" part in the
output which is clearly wrong. 
There is no check, if the output is empty - it would atleast
contain the "EXPORTS"-line.
Sometimes it reads ".libs/impgen", somtimes ".libs/impgen.exe",
looks pretty inconsistent.
HOST_CC is only used with impgen, no other reference. IIRC, there
are plans to have more binary compile-tools, which leasd to the
question whether there are plans for automatic support of HOST_CC
(whatever that is anyway)

Guido Draheim wrote:
> 
> no further comment needed, here's the output (libtool 1.4, 1.920)
> any ideas?
> 
> /bin/sh ./libtool --mode=link i386-mingw32msvc-gcc  -D_export=__dllexport   
> -W,-E -W,--warn-common -o mforth.la -rpath
> /programs/pfe/pfe -export-dynamic -module -avoid-version -Wl,-E ipc-def.lo 
> ipc-ext.lo timer-def.lo timer-ext.lo tmfkey-ext.lo
> tmtimer-ext.lo tm-ext.lo mforth-ext.lo mforth-words.lo mforth-dll.lo 
> -no-undefined --noinhibit-exec -mconsole
> --export-all-symbols     -L../pfe/.libs -lpfe
> extracting exported symbol list from `libpfe-0-31-40.dll'
> test -f .libs/impgen.c || \
>       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends 
> here \*\// { s/^# //;s/^# *$//; p; }" -e d < ./libtool
> > .libs/impgen.c
>       test -f .libs/impgen.exe || (cd .libs && \
>       if test "x" != "x" ; then  -o impgen impgen.c ; \
>       else i386-mingw32msvc-gcc -o impgen impgen.c ; fi)
>       .libs/impgen /usr/src/pfe/.libs/.libs/libpfe-0-31-40.dll > 
> .libs/libpfe-0-31-40.dll-def
> ./libtool: .libs/impgen: cannot execute binary file
> make: *** [mforth.la] Error 126
> address@hidden:/usr/src/mforth > file .libs/impgen
> .libs/impgen: MS Windows PE 32-bit Intel 80386 console executable not 
> relocatable

-- guido                         Edel sei der Mensch, hilfreich und gut
31:GCS/E/S/P C++$++++ ULHS L++w- N++@  d(+-) s+a- h.r(*@)>+++ y++ 5++X-



reply via email to

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