From ae267839021c52f5580730bbdafb7ec28a1ae47b Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 29 Mar 2019 23:11:39 +0300 Subject: [PATCH] scripts: travis: yet another workaround for mingw... --- scripts/build_mingw_engine.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/build_mingw_engine.sh b/scripts/build_mingw_engine.sh index 068b7725..97b7b2c6 100755 --- a/scripts/build_mingw_engine.sh +++ b/scripts/build_mingw_engine.sh @@ -8,8 +8,7 @@ export CC="ccache i686-w64-mingw32-gcc" export CXX="ccache i686-w64-mingw32-g++" export CFLAGS="-static-libgcc -no-pthread -msse2" # add sse2 to workaround mingw multiple definition of MemoryBarrier bug export CXXFLAGS="-static-libgcc -static-libstdc++ -no-pthread -msse2" -export LDFLAGS="-static-libgcc -static-libstdc++ -no-pthread" -export LINKFLAGS="-static-libgcc -static-libstdc++ -no-pthread" +export LDFLAGS="-static-libgcc -static-libstdc++ -no-pthread --allow-multiple-definition" # workaround some other mingw bugs 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