Disable Immintrin (Intel Intrinsics Emulation) for OpenBSD
authorDavid Griffith <dave@661.org>
Fri, 13 Sep 2019 18:34:28 +0000 (11:34 -0700)
committerDavid Griffith <dave@661.org>
Fri, 13 Sep 2019 18:34:28 +0000 (11:34 -0700)
It's not like that will do much good for what Frotz does anyhow.

Makefile
src/sdl/Makefile

index d2797cfce5bc46faeeaf2b7da698209aaeccaf8c..87ea12cc7de6866ce7bb12c67aaf289fe4b019a7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,7 @@ ifneq ($(OS),Windows_NT)
        OPENBSD = yes
        CFLAGS += -I/usr/local/include
        LDFLAGS += -L/usr/local/lib
+       SDL_CFLAGS += -DSDL_DISABLE_IMMINTRIN_H
        SDL_LDFLAGS += -lexecinfo
     endif
     ifeq ($(UNAME_S),Linux)
@@ -147,6 +148,7 @@ export RANLIB
 export PREFIX
 export MANDIR
 export SYSCONFDIR
+export SDL_CFLAGS
 export COLOR
 export SOUND
 export NOSOUND
index bdc12dd93989fb981d157a9eff2e1d59d33b525f..f941115d25538668e16f3f13af50f5331b582b1f 100644 (file)
@@ -8,7 +8,7 @@ CC = gcc
 #CC = clang
 
 PKG_CONFIG ?= pkg-config
-override CFLAGS += $(shell $(PKG_CONFIG) $(SDL_PKGS) --cflags)
+override CFLAGS += $(shell $(PKG_CONFIG) $(SDL_PKGS) --cflags) $(SDL_CFLAGS)
 
 SOURCES = sf_fonts.c sf_msg_en.c sf_resource.c sf_util.c \
        sf_deffont.c sf_ftype.c sf_osfdlg.c sf_sig.c sf_video.c \