From: divverent Date: Mon, 13 Jun 2016 19:04:37 +0000 (+0000) Subject: Fix FTBFS on non-x86 architectures X-Git-Tag: xonotic-v0.8.5~88^2~65 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bb23c6d9b9fd5ead3f56b7b8fd998cdbb0481b42;p=xonotic%2Fdarkplaces.git 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 --- 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)