changeset 824:3b8267fd1687

Allow for LTO on Windows
author Michael Pavone <pavone@retrodev.com>
date Mon, 03 Aug 2015 22:31:13 -0700
parents b1b5a7e7d955
children e6f2c9dbf6c8
files Makefile
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Aug 03 22:30:29 2015 -0700
+++ b/Makefile	Mon Aug 03 22:31:13 2015 -0700
@@ -15,7 +15,7 @@
 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 @@
 endif
 
 endif #PORTABLE
+endif #Windows
 
 ifdef DEBUG
 CFLAGS:=-ggdb $(CFLAGS)
@@ -63,7 +64,6 @@
 CFLAGS:=-O2 -flto $(CFLAGS)
 LDFLAGS:=-O2 -flto $(LDFLAGS)
 endif #DEBUG
-endif #Windows
 
 ifdef Z80_LOG_ADDRESS
 CFLAGS+= -DZ80_LOG_ADDRESS