From: David Griffith Date: Fri, 13 Sep 2019 18:34:28 +0000 (-0700) Subject: Disable Immintrin (Intel Intrinsics Emulation) for OpenBSD X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=5914739eae93655cf7b877a701ef91cf188c82bf;p=liskon_frotz.git Disable Immintrin (Intel Intrinsics Emulation) for OpenBSD It's not like that will do much good for what Frotz does anyhow. --- diff --git a/Makefile b/Makefile index d2797cf..87ea12c 100644 --- 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 diff --git a/src/sdl/Makefile b/src/sdl/Makefile index bdc12dd..f941115 100644 --- a/src/sdl/Makefile +++ b/src/sdl/Makefile @@ -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 \