Sent in from Paul Valencia, with some minor tweaks from myself. Tested by thfr@ Thanks both.
24 lines
534 B
Plaintext
24 lines
534 B
Plaintext
$OpenBSD: patch-engine_hexen2_server_Makefile,v 1.3 2020/06/08 21:15:19 edd Exp $
|
|
|
|
Use standard optimisations.
|
|
|
|
Index: engine/hexen2/server/Makefile
|
|
--- engine/hexen2/server/Makefile.orig
|
|
+++ engine/hexen2/server/Makefile
|
|
@@ -67,15 +67,6 @@ endif
|
|
CPUFLAGS=$(CPU_X86)
|
|
|
|
CFLAGS += -Wall
|
|
-CFLAGS += $(CPUFLAGS)
|
|
-ifdef DEBUG
|
|
-CFLAGS += -g
|
|
-else
|
|
-# optimization flags
|
|
-CFLAGS += -O2 -DNDEBUG=1 -ffast-math
|
|
-# NOTE: -fomit-frame-pointer is broken with ancient gcc versions!!
|
|
-CFLAGS += -fomit-frame-pointer
|
|
-endif
|
|
|
|
CPPFLAGS=
|
|
LDFLAGS =
|