(1) Made build-mingw32.sh build .NET 4.5 as well.
authorJames Bellinger <jfb@zer7.com>
Sun, 24 Jun 2012 19:40:36 +0000 (15:40 -0400)
committerJames Bellinger <jfb@zer7.com>
Sun, 24 Jun 2012 19:43:14 +0000 (15:43 -0400)
(2) Fixed the version extraction for build-mingw32.sh. It extracted from the wrong line for current configure.in.
(3) configure.in added a line for Clang for the Windows cross-compile just like the Android cross-compile has.
    It can't do the automatic check due to being a cross-compile so manually adding the line makes it possible
    to build. Like Android, if you want to use Clang for the cross-compile, you have to manually set the
    variable to 'yes'.

Summary: With these changes, build-mingw32.sh works nicely and I've successfully built Windows Mono on Debian 6.
         Changelog suggests it may not have been touched/used in a while, so this is an un-break patch.

build-mingw32.sh
configure.in

index 16fc66fa923fe10bdbecfe1a2c32f6c6d7fb794e..8bcb5ff973c1eb516b0550121872b754aef841ee 100755 (executable)
@@ -4,7 +4,7 @@ MINGW=i386-mingw32msvc
 CROSS_DIR=/opt/cross/$MINGW
 EXTRA_CROSS_DIR=
 INSTALL_DESTDIR="$CURDIR/mono-win32"
-PROFILES="default net_2_0 net_3_5 net_4_0 moonlight"
+PROFILES="default net_2_0 net_3_5 net_4_0 net_4_5 moonlight"
 TEMPORARY_PKG_CONFIG_DIR=/tmp/$RANDOM-pkg-config-$RANDOM
 ORIGINAL_PATH="$PATH"
 
@@ -57,7 +57,7 @@ function setup ()
     CROSS_DLL_DIR="$CROSS_DIR/bin"
     PATH=$CROSS_BIN_DIR:$PATH
 
-    MONO_VERSION=`grep AM_INIT_AUTOMAKE configure.in | cut -d ',' -f 2|tr -d '\)'|tr -d '\('`
+    MONO_VERSION=`grep AC_INIT configure.in | cut -d ',' -f 2|tr -d '\[ \]'`
     
     if [ -d ./.git ]; then
        MONO_GIT_COMMIT="`git log -1 --format=format:%t`"
index 347142e94ce42e7c9a54c5df7b8bdef6141f9af0..09b479cab935a1b94b8114aba5d8c86fe17c8886 100644 (file)
@@ -93,6 +93,7 @@ case "$host" in
                AC_DEFINE(DISABLE_PORTABILITY,1,[Disable the io-portability layer])
                AC_DEFINE(PLATFORM_NO_SYMLINKS,1,[This platform does not support symlinks])
                host_win32=yes
+               mono_cv_clang=no
                if test "x$cross_compiling" = "xno"; then
                        target_win32=yes
                        if test "x$host" == "x$build" -a "x$host" == "x$target"; then