]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fix C wrapper invocation for ceGCC hosts (cegcc and mingw32ce).
authorVincent Torri <vtorri@univ-evry.fr>
Sun, 7 Jun 2009 07:25:45 +0000 (09:25 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 7 Jun 2009 07:25:45 +0000 (09:25 +0200)
* libltdl/config/ltmain.m4sh (func_mode_link): do not generate
C wrapper for cegcc and mingw32ce hosts.
(func_emit_cwrapperexe_src): remove useless check on
__MINGW32CE__.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
libltdl/config/ltmain.m4sh

index 8220712000ee72f3727f5a25446b861cc3ae6c68..7438abfbd110677083a94bf5d5252375c86dad07 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-06-07  Vincent Torri  <vtorri@univ-evry.fr>  (tiny change)
+
+       Fix C wrapper invocation for ceGCC hosts (cegcc and mingw32ce).
+       * libltdl/config/ltmain.m4sh (func_mode_link): do not generate
+       C wrapper for cegcc and mingw32ce hosts.
+       (func_emit_cwrapperexe_src): remove useless check on
+       __MINGW32CE__.
+
 2009-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Don't pick up double-quotes from /etc/ld.so.conf on Ubuntu.
index 560930443c54dd1900ef23abb7b23f8d64307b22..72660a87e1144f30300c31ecf0f10276e37118b7 100644 (file)
@@ -2738,9 +2738,7 @@ EOF
 #include <assert.h>
 #include <string.h>
 #include <ctype.h>
-#ifndef __MINGW32CE__
-# include <errno.h>
-#endif
+#include <errno.h>
 #include <fcntl.h>
 #include <sys/stat.h>
 
@@ -2770,7 +2768,7 @@ int setenv (const char *, const char *, int);
 #  define _INTPTR_T_DEFINED
 #  define intptr_t int
 # endif
-#elif defined(__MINGW32__) && !defined(__MINGW32CE__)
+#elif defined(__MINGW32__)
 # define setmode _setmode
 # define stat    _stat
 # define chmod   _chmod
@@ -3145,11 +3143,7 @@ EOF
   if (rval == -1)
     {
       /* failed to start process */
-#ifndef __MINGW32CE__
       LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
-#else
-      LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\"\n", lt_argv_zero));
-#endif
       return 127;
     }
   return rval;
@@ -3378,12 +3372,8 @@ chase_symlinks (const char *pathspec)
        }
       else
        {
-#ifndef __MINGW32CE__
          char *errstr = strerror (errno);
          lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
-#else
-         lt_fatal ("Error accessing file %s", tmp_pathspec);
-#endif
        }
     }
   XFREE (tmp_pathspec);
@@ -7411,15 +7401,15 @@ EOF
 
       wrappers_required=yes
       case $host in
+      *cegcc* | *mingw32ce*)
+        # Disable wrappers for cegcc and mingw32ce hosts, 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