]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix FTBFS on non-x86 architectures
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 13 Jun 2016 19:04:37 +0000 (19:04 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 13 Jun 2016 19:04:37 +0000 (19:04 +0000)
From: Timothy Pearson <kb9vqf@pearsoncomputing.net>

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12257 d7cf8633-e32d-0410-b094-e92efae38249

makefile.inc

index 547844abf6d4d82cd303aaa4c2a2b0339ef4b874..32417d176689185009f5a1424e1ff58315966b67 100644 (file)
@@ -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)