From 18e6f6c63498239e27797374edcff7cfa081c159 Mon Sep 17 00:00:00 2001 From: Artur Frysiak Date: Fri, 4 Jul 2003 16:10:09 +0000 Subject: [PATCH] - compilation fix Changed files: crossmingw32-runtime-configure.patch -> 1.1 crossmingw32-runtime-stdinc.patch -> 1.1 --- crossmingw32-runtime-configure.patch | 114 +++++++++++++++++++++++++++ crossmingw32-runtime-stdinc.patch | 33 ++++++++ 2 files changed, 147 insertions(+) create mode 100644 crossmingw32-runtime-configure.patch create mode 100644 crossmingw32-runtime-stdinc.patch diff --git a/crossmingw32-runtime-configure.patch b/crossmingw32-runtime-configure.patch new file mode 100644 index 0000000..a928fce --- /dev/null +++ b/crossmingw32-runtime-configure.patch @@ -0,0 +1,114 @@ +--- mingw-runtime-3.0/mingwex/configure.in.wiget 2003-05-06 15:46:46.000000000 +0000 ++++ mingw-runtime-3.0/mingwex/configure.in 2003-07-04 13:47:53.000000000 +0000 +@@ -19,21 +19,25 @@ + AC_PREREQ(2.13) + AC_INIT(imaxabs.c) + +-CC=${CC-cc} ++AC_CANONICAL_SYSTEM ++AC_CHECK_TOOL(CC,gcc,gcc) ++if test -z "$CC"; then ++ AC_CHECK_TOOL(CC,cc,cc) ++fi + AC_SUBST(CC) +-AS=${AS-as} ++AC_CHECK_TOOL(AS,as,as) + AC_SUBST(AS) +-AR=${AR-ar} ++AC_CHECK_TOOL(AR,ar,ar) + AC_SUBST(AR) +-LD=${LD-ld} ++AC_CHECK_TOOL(LD,ld,ld) + AC_SUBST(LD) +-RANLIB=${RANLIB-ranlib} ++AC_CHECK_TOOL(RANLIB,ranlib,ranlib) + AC_SUBST(RANLIB) +-DLLTOOL=${DLLTOOL-dlltool} ++AC_CHECK_TOOL(DLLTOOL,dlltool,dlltool) + AC_SUBST(DLLTOOL) +-DLLWRAP=${DLLWRAP-dllwrap} ++AC_CHECK_TOOL(DLLWRAP,dllwrap,dllwrap) + AC_SUBST(DLLWRAP) +-AC_CANONICAL_SYSTEM ++AC_SUBST(CFLAGS) + + case "$target_os" in + *cygwin*) +--- mingw-runtime-3.0/profile/configure.in.wiget 2003-05-06 15:46:46.000000000 +0000 ++++ mingw-runtime-3.0/profile/configure.in 2003-07-04 13:46:49.000000000 +0000 +@@ -19,6 +19,24 @@ + AC_PREREQ(2.13) + AC_INIT(gcrt0.c) + ++AC_CANONICAL_SYSTEM ++AC_CHECK_TOOL(CC,gcc,gcc) ++if test -z "$CC"; then ++ AC_CHECK_TOOL(CC,cc,cc) ++fi ++AC_SUBST(CC) ++AC_CHECK_TOOL(AS,as,as) ++AC_SUBST(AS) ++AC_CHECK_TOOL(AR,ar,ar) ++AC_SUBST(AR) ++AC_CHECK_TOOL(LD,ld,ld) ++AC_SUBST(LD) ++AC_CHECK_TOOL(RANLIB,ranlib,ranlib) ++AC_SUBST(RANLIB) ++AC_CHECK_TOOL(DLLTOOL,dlltool,dlltool) ++AC_SUBST(DLLTOOL) ++AC_CHECK_TOOL(DLLWRAP,dllwrap,dllwrap) ++AC_SUBST(DLLWRAP) + CC=${CC-cc} + AC_SUBST(CC) + AS=${AS-as} +--- mingw-runtime-3.0/configure.in.wiget 2003-05-06 15:23:18.000000000 +0000 ++++ mingw-runtime-3.0/configure.in 2003-07-04 13:46:49.000000000 +0000 +@@ -26,15 +26,13 @@ + dnl itself. + + AC_DEFUN(LIB_AC_PROG_CC, +-[AC_BEFORE([$0], [AC_PROG_CPP])dnl ++[ + AC_CHECK_TOOL(CC, gcc, gcc) + if test -z "$CC"; then + AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) + test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) + fi + +-AC_PROG_CC_GNU +- + if test $ac_cv_prog_gcc = yes; then + GCC=yes + dnl Check whether -g works, even if CFLAGS is set, in case the package +@@ -43,7 +41,6 @@ + ac_test_CFLAGS="${CFLAGS+set}" + ac_save_CFLAGS="$CFLAGS" + CFLAGS= +- AC_PROG_CC_G + if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" + elif test $ac_cv_prog_cc_g = yes; then +@@ -69,8 +66,8 @@ + AC_SUBST(all_dlls_host) + AC_SUBST(install_dlls_host) + +-AC_CHECK_TOOL(AR, ar, ar) + ++AC_CHECK_TOOL(AR, ar, ar) + AC_SUBST(AR) + AC_CHECK_TOOL(AS, as, as) + AC_SUBST(AS) +@@ -84,10 +81,11 @@ + AC_SUBST(DLLWRAP) + AC_CHECK_TOOL(WINDRES, windres, windres) + AC_SUBST(WINDRES) ++AC_CANONICAL_SYSTEM ++AC_SUBST(CFLAGS) + +-AC_ALLOCA ++dnl AC_ALLOCA + +-AC_CANONICAL_SYSTEM + SUBDIRS="profile mingwex" + configdirs="profile mingwex" + HEADER_SUBDIR="" diff --git a/crossmingw32-runtime-stdinc.patch b/crossmingw32-runtime-stdinc.patch new file mode 100644 index 0000000..b4ec251 --- /dev/null +++ b/crossmingw32-runtime-stdinc.patch @@ -0,0 +1,33 @@ +--- mingw-runtime-3.0/mingwex/Makefile.in.wiget 2003-05-06 13:28:37.000000000 +0000 ++++ mingw-runtime-3.0/mingwex/Makefile.in 2003-07-04 13:58:24.000000000 +0000 +@@ -78,7 +78,7 @@ + + W32API_INCLUDE = @W32API_INCLUDE@ + INCLUDES = -I$(srcdir) -I$(srcdir)/../include \ +- -nostdinc -nostdinc++ \ ++ -nostdinc++ \ + -iwithprefixbefore include + ALL_CFLAGS = $(CFLAGS) $(OPTFLAGS) $(W32API_INCLUDE) $(INCLUDES) $(MNO_CYGWIN) + ALL_CXXFLAGS = $(CXXFLAGS) $(OPTFLAGS) $(W32API_INCLUDE) $(INCLUDES) $(MNO_CYGWIN) +--- mingw-runtime-3.0/profile/Makefile.in.wiget 2003-07-04 13:58:51.000000000 +0000 ++++ mingw-runtime-3.0/profile/Makefile.in 2003-07-04 14:01:05.000000000 +0000 +@@ -49,7 +49,7 @@ + + W32API_INCLUDE = @W32API_INCLUDE@ + INCLUDES = -I$(srcdir) -I$(srcdir)/../include \ +- -nostdinc -nostdinc++ \ ++ -nostdinc++ \ + -iwithprefixbefore include + ALL_CFLAGS = $(CFLAGS) $(W32API_INCLUDE) $(INCLUDES) $(MNO_CYGWIN) + ALL_CXXFLAGS = $(CXXFLAGS) $(W32API_INCLUDE) $(INCLUDES) $(MNO_CYGWIN) +--- mingw-runtime-3.0/Makefile.in.wiget 2003-05-06 16:01:51.000000000 +0000 ++++ mingw-runtime-3.0/Makefile.in 2003-07-04 13:58:24.000000000 +0000 +@@ -98,7 +98,7 @@ + W32API_INCLUDE = @W32API_INCLUDE@ + INCLUDES+= -I$(srcdir)/include \ + -I$(srcdir)/../include \ +- -nostdinc -nostdinc++ \ ++ -nostdinc++ \ + -iwithprefixbefore include + ALL_CFLAGS = $(CFLAGS) $(W32API_INCLUDE) $(INCLUDES) $(MNO_CYGWIN) + ALL_CXXFLAGS = $(CXXFLAGS) $(W32API_INCLUDE) $(INCLUDES) $(MNO_CYGWIN) -- 2.44.0