[Xfce4-commits] <midori:master> Automatically find compiler when running crossconfig.sh

Christian Dywan noreply at xfce.org
Thu May 5 22:54:02 CEST 2011


Updating branch refs/heads/master
         to f22772bf2107dddefa602af85e07bdcce96c49eb (commit)
       from 414997b236ada8e363f132e6e276a5f41e4609c5 (commit)

commit f22772bf2107dddefa602af85e07bdcce96c49eb
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Thu May 5 21:35:07 2011 +0200

    Automatically find compiler when running crossconfig.sh
    
    Also fix typo in MINGW_PREFIX_PATH.

 win32/x86-mingw32-opensuse/crossconfig.sh |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/win32/x86-mingw32-opensuse/crossconfig.sh b/win32/x86-mingw32-opensuse/crossconfig.sh
index 8b36da6..169c094 100644
--- a/win32/x86-mingw32-opensuse/crossconfig.sh
+++ b/win32/x86-mingw32-opensuse/crossconfig.sh
@@ -9,12 +9,21 @@
 #
 # See the file COPYING for the full license text.
 
-export MINGW_PREFIX=~/dev/mingw/ming32
+export MINGW_PREFIX=~/dev/mingw/mingw32
 export PATH=$MINGW_PREFIX/bin:$PATH
 export PKG_CONFIG_PATH=$MINGW_PREFIX/lib/pkgconfig
 export PKG_CONFIG_LIBDIR=
 export MINGW_BUILD=`gcc -dumpmachine`
 export MINGW_TARGET=i386-mingw32
 
-CC=i386-mingw32-gcc ./configure --prefix=$MINGW_PREFIX $@
+find_compiler ()
+{
+    export CC=$( find /usr/bin -iname *mingw32*gcc )
+}
 
+find_compiler
+if [ "$CC" != "" ]; then
+    CC=${CC} ./configure --prefix=$MINGW_PREFIX $@
+else
+    echo "Cannot find cross-complier! Please install mingw version of gcc compiler."
+fi



More information about the Xfce4-commits mailing list