Hey,
here is a patch that does not generate the c wrapper when cegcc hosts
(cegcc and mingw32ce) are used.
regards
Vincent Torri
diff --git a/ChangeLog b/ChangeLog
index e278549..cb6ac68 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-06-07 Vincent Torri <vtorri at univ-evry dot fr>
+
+ 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-06 Richard Sandiford <[email protected]>
Fix GNU nm invocation for AIX.
diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index 5609304..72660a8 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -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