diff --git a/build/lol-build b/build/lol-build index 1392b9ff..8f0e38d4 100755 --- a/build/lol-build +++ b/build/lol-build @@ -74,6 +74,10 @@ configure() echo "Error: could not find win32 compiler" >&2 false fi + if test "x${MSYSTEM}" = xMINGW64; then + # If using mingw64, we're not really cross-compiling + BUILDFLAGS= + fi PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$PWD/contrib/gtkglarea-2.0.1/lib/pkgconfig" LDFLAGS="$LDFLAGS -L$PWD/contrib/glew-1.7.0/lib/i686-w64-mingw32" LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-1.2.14/lib/i686-w64-mingw32" @@ -93,6 +97,10 @@ configure() echo "Error: could not find win64 compiler" >&2 false fi + if test "x${MSYSTEM}" = xMINGW32; then + # If using mingw32, we're not really cross-compiling + BUILDFLAGS= + fi LDFLAGS="$LDFLAGS -L$PWD/contrib/glew-1.7.0/lib/x86_64-w64-mingw32" LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-1.2.14/lib/x86_64-w64-mingw32" LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-image-1.2.10/lib/x86_64-w64-mingw32"