From bb23c6d9b9fd5ead3f56b7b8fd998cdbb0481b42 Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 13 Jun 2016 19:04:37 +0000 Subject: [PATCH] Fix FTBFS on non-x86 architectures From: Timothy Pearson git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12257 d7cf8633-e32d-0410-b094-e92efae38249 --- makefile.inc | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/makefile.inc b/makefile.inc index 547844ab..32417d17 100644 --- a/makefile.inc +++ b/makefile.inc @@ -180,8 +180,23 @@ CFLAGS_RELEASE= CFLAGS_RELEASE_PROFILE=-fbranch-probabilities CFLAGS_SDL=$(SDLCONFIG_CFLAGS) -CFLAGS_SSE=-msse -CFLAGS_SSE2=-msse2 +ifeq ($(DP_MACHINE),x86_64) + CFLAGS_SSE=-msse + CFLAGS_SSE2=-msse2 +else +ifeq ($(DP_MACHINE),i686) + CFLAGS_SSE=-msse + CFLAGS_SSE2=-msse2 +else +ifeq ($(DP_MACHINE),i386) + CFLAGS_SSE=-msse + CFLAGS_SSE2=-msse2 +else + CFLAGS_SSE= + CFLAGS_SSE2= +endif # ifeq ($(DP_MACHINE),i386) +endif # ifeq ($(DP_MACHINE),i686) +endif # ifeq ($(DP_MACHINE),x86_64) OPTIM_DEBUG=$(CPUOPTIMIZATIONS) #OPTIM_RELEASE=-O2 -fno-strict-aliasing -ffast-math -funroll-loops $(CPUOPTIMIZATIONS) -- 2.39.2