From 15f86ed1f5acce450950a24841c9680c0115e3b5 Mon Sep 17 00:00:00 2001 From: "Christopher A. Mosher" Date: Thu, 11 Apr 2019 17:24:59 -0400 Subject: [PATCH] windows cross-compile --- src/Makefile.mingw | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile.mingw b/src/Makefile.mingw index 480557c..1a50532 100644 --- a/src/Makefile.mingw +++ b/src/Makefile.mingw @@ -4,11 +4,11 @@ SDL_ROOT_DIR=/usr/x86_64-w64-mingw32/bin CXX=/usr/bin/x86_64-w64-mingw32-g++ SDL2_CFLAGS=`$(SDL_ROOT_DIR)/sdl2-config --cflags` -CXXFLAGS=-std=c++11 -static-libgcc -static-libstdc++ $(SDL2_CFLAGS) -DETCDIR=\"./\" +CXXFLAGS=-O3 -std=c++11 $(SDL2_CFLAGS) -DETCDIR=\"..\" LD=/usr/bin/x86_64-w64-mingw32-g++ -SDL2_LDFLAGS=`$(SDL_ROOT_DIR)/sdl2-config --libs` -LDFLAGS=$(SDL2_LDFLAGS) -lole32 -static-libgcc -static-libstdc++ +SDL2_LDFLAGS=`$(SDL_ROOT_DIR)/sdl2-config --static-libs | sed 's/-mwindows//'` -lcomdlg32 -static-libstdc++ +LDFLAGS=$(SDL2_LDFLAGS) SRCS=$(notdir $(wildcard *.cpp)) INCS=$(notdir $(wildcard *.h))