aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMarcus Comstedt2018-12-05 22:50:03 +0100
committerMarcus Comstedt2018-12-05 22:50:03 +0100
commit13a3d522ed8e4dbe58df1ad3e3aff5f61f83c7ea (patch)
tree3dd9ad2e90d6d35f8f98dd8649fabba425b8f9a7 /configure
parent1855d1cf13de5c9f4cf84fc07ab4b5053cae5295 (diff)
downloadscummvm-rg350-13a3d522ed8e4dbe58df1ad3e3aff5f61f83c7ea.tar.gz
scummvm-rg350-13a3d522ed8e4dbe58df1ad3e3aff5f61f83c7ea.tar.bz2
scummvm-rg350-13a3d522ed8e4dbe58df1ad3e3aff5f61f83c7ea.zip
BUILD: Also add $LIBS in cc_check()
This should hopefully fix the problems caused by -Dmain=SDL_main in the MinGW build.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 0152e9c95c..79a2421c5e 100755
--- a/configure
+++ b/configure
@@ -283,12 +283,12 @@ cc_check_no_clean() {
echo >> "$TMPLOG"
cat "$TMPC" >> "$TMPLOG"
echo >> "$TMPLOG"
- echo "$CXX $LDFLAGS $CXXFLAGS $DEFINES $INCLUDES $TMPC -o $TMPO$HOSTEXEEXT $@" >> "$TMPLOG"
+ echo "$CXX $LDFLAGS $CXXFLAGS $DEFINES $INCLUDES $TMPC $LIBS -o $TMPO$HOSTEXEEXT $@" >> "$TMPLOG"
rm -f "$TMPO$HOSTEXEEXT"
if test "-c" = "$*" ; then
( $CXX $CXXFLAGS $DEFINES $INCLUDES "$TMPC" -o "$TMPO$HOSTEXEEXT" "$@" ) >> "$TMPLOG" 2>&1
else
- ( $CXX $LDFLAGS $CXXFLAGS $DEFINES $INCLUDES "$TMPC" -o "$TMPO$HOSTEXEEXT" "$@" ) >> "$TMPLOG" 2>&1
+ ( $CXX $LDFLAGS $CXXFLAGS $DEFINES $INCLUDES "$TMPC" $LIBS -o "$TMPO$HOSTEXEEXT" "$@" ) >> "$TMPLOG" 2>&1
fi
TMPR="$?"
echo "return code: $TMPR" >> "$TMPLOG"