diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-08-03 22:31:13 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-08-03 22:31:13 -0700 |
commit | b23113f80d566e4ab55c6133ebf747af782914d3 (patch) | |
tree | 31ebbfe805c74d36f795308cad6d371e1c873e84 | |
parent | ec247a6ed43c236f884849816de1b7cb2541b784 (diff) |
Allow for LTO on Windows
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,7 +15,7 @@ MEM:=mem_win.o TERMINAL:=terminal_win.o EXE:=.exe CC:=wine gcc.exe -CFLAGS:=-O2 -std=gnu99 -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -I"$(SDL2_PREFIX)/include/SDL2" -DGLEW_STATIC +CFLAGS:=-std=gnu99 -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -I"$(SDL2_PREFIX)/include/SDL2" -DGLEW_STATIC LDFLAGS:= $(GLEW32S_LIB) -L"$(SDL2_PREFIX)/lib" -lm -lmingw32 -lSDL2main -lSDL2 -lws2_32 -lopengl32 -lglu32 -mwindows CPU:=i686 @@ -55,6 +55,7 @@ LDFLAGS+= -framework OpenGL endif endif #PORTABLE +endif #Windows ifdef DEBUG CFLAGS:=-ggdb $(CFLAGS) @@ -63,7 +64,6 @@ else CFLAGS:=-O2 -flto $(CFLAGS) LDFLAGS:=-O2 -flto $(LDFLAGS) endif #DEBUG -endif #Windows ifdef Z80_LOG_ADDRESS CFLAGS+= -DZ80_LOG_ADDRESS |