Automatically find compiler when running crossconfig.sh
Also fix typo in MINGW_PREFIX_PATH.
This commit is contained in:
parent
414997b236
commit
f22772bf21
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue