From: Vincent Torri Date: Sun, 7 Jun 2009 07:25:45 +0000 (+0200) Subject: Fix C wrapper invocation for ceGCC hosts (cegcc and mingw32ce). X-Git-Tag: v2.2.7b~85 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f4a1d723744feddc05a77bc687366c286950651;p=thirdparty%2Flibtool.git 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__. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 822071200..7438abfbd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-06-07 Vincent Torri (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 Don't pick up double-quotes from /etc/ld.so.conf on Ubuntu. diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 560930443..72660a87e 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -2738,9 +2738,7 @@ EOF #include #include #include -#ifndef __MINGW32CE__ -# include -#endif +#include #include #include @@ -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