libtool
[Top][All Lists]
Advanced

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

Re: purpose of the c wrapper


From: Vincent Torri
Subject: Re: purpose of the c wrapper
Date: Fri, 5 Jun 2009 00:26:17 +0200 (CEST)


Hey,

* Vincent Torri wrote on Wed, Jun 03, 2009 at 09:32:50PM CEST:

Does there exist a simulator for wince?  Even if not now, can there
exist one at some point?  In that case, we should strive to not make
things harder for that setup.

there is a simulator for Windows CE that can be run on linux. But it is a
pain to setup and to use, and i never succeeded in using it for graphic
programs (which is the purpose of the libraries I'm porting).

Hmm.  But libtool aims to be usable not just for you.  Oh well, I guess
we've been there before, but no other user has shown up yet.

well, the emulator is not really usable on linux, and it emulates only some versions of Windows CE, not all.

The file link_output.txt is the result of the command :

/bin/bash ../../libtool --tag=CC --debug   --mode=link arm-mingw32ce-gcc
-O3 -pipe -Wl,--enable-auto-import -L/home/torri/local/wince/lib -Wl,-s
-o test_evil.exe test_evil.o ../../src/lib/libevil.la > link_output.txt
2>&1


My version of libtool : 2.2.6

Well, we've been through this before, too.  You and I have put in fixes
for this bit after 2.2.6 was released, the relevant one seems to be in
4e7334c7c28e51d3943339f6f3617985c03e3f79.  Try current git or a nightly
snapshot, it will set $wrappers_required to no,

I have just tried with the latest git of libtool. And I have exactly the same problem, $wrappers_required is set to 'yes'. I think that I know why. wrappers_required is set to 'no' only if "cegcc" is used. I should be a bit more precise: The cegcc framework provide 2 sets of cross compilation toolchain:

a) 'cegcc', which provides a POSIX emulation (a kind of cygwin for win ce)
b) 'mingw32ce', which provides a native compilation toolchain

in ltmain.m4sh, only cegcc is mentioned. mingw32ce should also be mentioned. Here is below a patch, which fixes the problem. Note that I have to put the test before *cygwin* | *mingw* because otherwise, mingw32ce will fall into that case (which was actually the case)

Vincent Torri


diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index 5609304..778666b 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -7411,15 +7411,15 @@ EOF

       wrappers_required=yes
       case $host in
+      *cegcc* | *mingw32ce* )
+        # Disable wrappers for cegcc and mingw32ce, we are cross compiling 
anyway.
+        wrappers_required=no
+        ;;
       *cygwin* | *mingw* )
         if test "$build_libtool_libs" != yes; then
           wrappers_required=no
         fi
         ;;
-      *cegcc*)
-        # Disable wrappers for cegcc, we are cross compiling anyway.
-        wrappers_required=no
-        ;;
       *)
         if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
           wrappers_required=no





reply via email to

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