+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.
#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>
# 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
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;
}
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);
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