openbsd-ports/games/eduke32/patches/patch-build_Makefile_shared
rfreeman 3dcfce0df6 Import eduke32.
eduke32 is an advanced Duke Nukem 3D engine capable of playing
the game, and filled to the brim with editing enhancements.
Includes mapster32, a map-making program similar to the original
build map editor.

ok jasper@, edd@
2012-07-17 21:29:50 +00:00

33 lines
1.0 KiB
Plaintext

$OpenBSD: patch-build_Makefile_shared,v 1.1.1.1 2012/07/17 21:29:50 rfreeman Exp $
Default optimisations.
--- build/Makefile.shared.orig Fri Dec 9 14:08:47 2011
+++ build/Makefile.shared Fri Mar 9 05:59:46 2012
@@ -21,24 +21,14 @@ BUILDCFLAGS=
# This is easier than trying to squeeze it out of gcc --version:
GCC_MAJOR ?= 4
ifeq (4,$(GCC_MAJOR))
- F_NO_STACK_PROTECTOR := -fno-stack-protector
- # there are some link-time issues with stack protectors, so make it possible to override
- F_STACK_PROTECTOR_ALL ?= -fstack-protector-all
ifneq ($(CC),clang)
F_JUMP_TABLES := -fjump-tables
endif
- M_TUNE_GENERIC := -mtune=generic
- M_STACKREALIGN := -mstackrealign
- L_SSP := -lssp
endif
ifndef ARCH
- ifeq ($(findstring i686, $(shell uname -m)), i686)
- ARCH=-march=pentium3 $(M_TUNE_GENERIC) -mmmx # -msse2 -mfpmath=sse,387 -malign-double $(M_STACKREALIGN)
- else
- ARCH=
- endif
+ ARCH=
endif
# Detect the platform if it wasn't explicitly given to us from