2010-04-03 Marek Habersack <mhabersack@novell.com>
authorMarek Habersack <grendel@twistedcode.net>
Fri, 2 Apr 2010 22:09:22 +0000 (22:09 -0000)
committerMarek Habersack <grendel@twistedcode.net>
Fri, 2 Apr 2010 22:09:22 +0000 (22:09 -0000)
* configure.in: TARGET_WIN32 is defined when cross-compiling with
MinGW

* build-mingw32.sh: include the 4.0 profile in the zip.
Remove cross-compilation environment bin path from PATH before
compiling native Mono.
Remove autotools cache directory before each compilation phase.

2010-04-03  Marek Habersack  <mhabersack@novell.com>

* process.c: when compiling with MinGW, force GetProcessId lookup
using GetProcessAddress.

svn path=/trunk/mono/; revision=154743

ChangeLog
build-mingw32.sh
configure.in
mono/metadata/ChangeLog
mono/metadata/process.c

index 3ab966210a0f7a2f0844a0516ef62ba85ebb1f86..9483d78a9ae016f8983712d9524e6d20993a5701 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-04-03  Marek Habersack  <mhabersack@novell.com>
+
+       * configure.in: TARGET_WIN32 is defined when cross-compiling with
+       MinGW
+
+       * build-mingw32.sh: include the 4.0 profile in the zip.
+       Remove cross-compilation environment bin path from PATH before
+       compiling native Mono.
+       Remove autotools cache directory before each compilation phase.
+
 2010-04-02  Marek Habersack  <mhabersack@novell.com>
 
        * configure.in: include -lkernel32 in LDFLAGS when cross-compiling
index b35d10072fe3a8c6eac47e87089f14caf42f5ccd..16b91cefe6d4cea4eb05cd682b534a9dd132dd07 100755 (executable)
@@ -4,8 +4,9 @@ MINGW=i386-mingw32msvc
 CROSS_DIR=/opt/cross/$MINGW
 COPY_DLLS="libgio*.dll libglib*.dll libgmodule*.dll libgthread*.dll libgobject*.dll"
 INSTALL_DESTDIR="$CURDIR/mono-win32"
-PROFILES="default net_2_0 moonlight net_3_5"
+PROFILES="default net_2_0 net_3_5 net_4_0 moonlight"
 TEMPORARY_PKG_CONFIG_DIR=/tmp/$RANDOM-pkg-config-$RANDOM
+ORIGINAL_PATH="$PATH"
 
 export CPPFLAGS_FOR_EGLIB CFLAGS_FOR_EGLIB CPPFLAGS_FOR_LIBGC CFLAGS_FOR_LIBGC
 
@@ -69,6 +70,7 @@ function build ()
 
     if [ -f ./Makefile ]; then
        make distclean
+       rm -rf autom4te.cache
     fi
 
     if [ ! -d "$CURDIR/build-cross-windows" ]; then
@@ -77,13 +79,18 @@ function build ()
 
     cd "$CURDIR/build-cross-windows"
     rm -rf *
-    ../configure --prefix=$MONO_PREFIX --with-crosspkgdir=$CROSS_PKG_CONFIG_DIR --build=$BUILD --target=$MINGW --host=$MINGW --enable-parallel-mark --program-transform-name="" --with-tls=none --disable-mcs-build --disable-embed-check --enable-win32-dllmain=yes --with-libgc-threads=win32
+    ../configure --prefix=$MONO_PREFIX --with-crosspkgdir=$CROSS_PKG_CONFIG_DIR --build=$BUILD --target=$MINGW --host=$MINGW --enable-parallel-mark --program-transform-name="" --with-tls=none --disable-mcs-build --disable-embed-check --enable-win32-dllmain=yes --with-libgc-threads=win32 --with-profile4=yes
     make
     cd "$CURDIR"
 
     if [ ! -d "$CURDIR/build-cross-windows-mcs" ]; then
        mkdir "$CURDIR/build-cross-windows-mcs"
     fi
+
+    rm -rf autom4te.cache
+    unset PATH
+    PATH="$ORIGINAL_PATH"
+    export PATH
     cd "$CURDIR/build-cross-windows-mcs"
     rm -rf *
     ../configure --prefix=$MONO_PREFIX --enable-parallel-mark
index fcf2bd4d632901a2d83f95d1c2cf08c9bb708598..43ec1913b27cdc21aad610347b4f62faa9176f45 100644 (file)
@@ -92,6 +92,9 @@ case "$host" in
                        # So libgc configure gets -mno-cygwin
                        export CC
                        export CXX
+               else
+                       target_win32=yes
+                       AC_DEFINE(TARGET_WIN32,1,[Target OS is Win32/MinGW])
                fi
                HOST_CC="gcc"
                # Windows 2000 is required that includes Internet Explorer 5.01
index c69e80db899c92a4492bda1b4cca5eaee0ae1693..675ef2a5396684d557b089a53a26dfe74de6f88c 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-03  Marek Habersack  <mhabersack@novell.com>
+
+       * process.c: when compiling with MinGW, force GetProcessId lookup
+       using GetProcessAddress.
+
 2010-04-02  Mark Probst  <mark.probst@gmail.com>
 
        * sgen-gc.c: parse_environment_string_extract_number() must be
index 74c238232ccec76b3e80182c78552b15adedb70a..573fffcafc65d429b16ced50effd3d81d7874812 100644 (file)
@@ -510,6 +510,10 @@ complete_path (const gunichar2 *appname, gchar **completed)
        return TRUE;
 }
 
+#if defined (__MINGW32__) && defined (HAVE_GETPROCESSID)
+#undef HAVE_GETPROCESSID
+#endif
+
 #ifndef HAVE_GETPROCESSID
 /* Run-time GetProcessId detection for Windows */
 #ifdef TARGET_WIN32