Browse Source

Try fix mingw linking

pull/2/head
mittorn 6 years ago
parent
commit
7299ee9f11
  1. 4
      scripts/build_mingw_engine.sh

4
scripts/build_mingw_engine.sh

@ -7,7 +7,9 @@ cd $TRAVIS_BUILD_DIR @@ -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

Loading…
Cancel
Save