diff options
author | Johannes Schickel | 2011-04-08 16:16:59 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-04-08 16:16:59 +0200 |
commit | bd253a62aca2a0571ad61a3167278d3c5437467a (patch) | |
tree | d4de7eb11241dd9b2746a58aa04abbae4a634a34 /configure | |
parent | 88b3fc7c66d327370a34dd8cc5c168aa6f4f7f34 (diff) | |
download | scummvm-rg350-bd253a62aca2a0571ad61a3167278d3c5437467a.tar.gz scummvm-rg350-bd253a62aca2a0571ad61a3167278d3c5437467a.tar.bz2 scummvm-rg350-bd253a62aca2a0571ad61a3167278d3c5437467a.zip |
BUILD: Support newer MinGW compilers.
It seems the recent MinGW gcc versions use the "TMP" env variable to determine
the temporary file path. Since we use that variable to hold temporary values it
will make g++ crash since it cannot access the path.
I "fixed" that problem by renaming the TMP variable we use to TMPR.
Tested with mingw-g++ 4.5.2.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -218,10 +218,10 @@ cc_check_no_clean() { echo "$CXX $LDFLAGS $CXXFLAGS $TMPC -o $TMPO$HOSTEXEEXT $@" >> "$TMPLOG" rm -f "$TMPO$HOSTEXEEXT" ( $CXX $LDFLAGS $CXXFLAGS "$TMPC" -o "$TMPO$HOSTEXEEXT" "$@" ) >> "$TMPLOG" 2>&1 - TMP="$?" - echo "return code: $TMP" >> "$TMPLOG" + TMPR="$?" + echo "return code: $TMPR" >> "$TMPLOG" echo >> "$TMPLOG" - return "$TMP" + return "$TMPR" } cc_check_clean() { @@ -230,9 +230,9 @@ cc_check_clean() { cc_check() { cc_check_no_clean "$@" - TMP="$?" + TMPR="$?" cc_check_clean - return "$TMP" + return "$TMPR" } cc_check_define() { @@ -1462,21 +1462,21 @@ EOF # echo_n "Type with 1 byte... " type_1_byte=`find_type_with_size 1` -TMP="$?" +TMPR="$?" echo "$type_1_byte" -test $TMP -eq 0 || exit 1 # check exit code of subshell +test $TMPR -eq 0 || exit 1 # check exit code of subshell echo_n "Type with 2 bytes... " type_2_byte=`find_type_with_size 2` -TMP="$?" +TMPR="$?" echo "$type_2_byte" -test $TMP -eq 0 || exit 1 # check exit code of subshell +test $TMPR -eq 0 || exit 1 # check exit code of subshell echo_n "Type with 4 bytes... " type_4_byte=`find_type_with_size 4` -TMP="$?" +TMPR="$?" echo "$type_4_byte" -test $TMP -eq 0 || exit 1 # check exit code of subshell +test $TMPR -eq 0 || exit 1 # check exit code of subshell # # Check whether we can use x86 asm routines |