# HG changeset patch # User Michael Pavone # Date 1438666273 25200 # Node ID 3b8267fd1687c2cecf43e40d08126267ee682679 # Parent b1b5a7e7d9558becc2c69efff44afd0dfbdf826b Allow for LTO on Windows diff -r b1b5a7e7d955 -r 3b8267fd1687 Makefile --- 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