From 7299ee9f117dda049792f867c1503d9d912cee89 Mon Sep 17 00:00:00 2001 From: mittorn Date: Sat, 23 Feb 2019 18:32:49 +0700 Subject: [PATCH] Try fix mingw linking --- scripts/build_mingw_engine.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/build_mingw_engine.sh b/scripts/build_mingw_engine.sh index 50d5c445..8c660020 100755 --- a/scripts/build_mingw_engine.sh +++ b/scripts/build_mingw_engine.sh @@ -7,7 +7,9 @@ cd $TRAVIS_BUILD_DIR export CC="ccache i686-w64-mingw32-gcc" export CXX="ccache i686-w64-mingw32-g++" export CFLAGS="-static-libgcc -no-pthread" -export CXXFLAGS="-static-libgcc -static-libstdc++" +export CXXFLAGS="-static-libgcc -static-libstdc++ -no-pthread" +export LDFLAGS="-static-libgcc -static-libstdc++ -no-pthread" +export LINKFLAGS="-static-libgcc -static-libstdc++ -no-pthread" export WINRC="i686-w64-mingw32-windres" rm -rf build # clean build directory ./waf configure --sdl2=$TRAVIS_BUILD_DIR/SDL2_mingw/i686-w64-mingw32/ --disable-vgui --build-type=debug --verbose || die # can't compile VGUI support on MinGW, due to differnet C++ ABI