From 7a237c80204b84c23146b5a6dfedbe57acfbba7a Mon Sep 17 00:00:00 2001 From: Dominic Fandrey Date: Mon, 27 Mar 2017 23:20:52 +0200 Subject: [PATCH 1/2] Do not pull CFLAGS into BASE_CFLAGS on FreeBSD --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 72de9b1c..7b25752e 100644 --- a/Makefile +++ b/Makefile @@ -654,7 +654,7 @@ else # ifdef MINGW ifeq ($(PLATFORM),freebsd) # flags - BASE_CFLAGS = $(shell env MACHINE_ARCH=$(ARCH) make -f /dev/null -VCFLAGS) \ + BASE_CFLAGS = \ -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \ -DUSE_ICON -DMAP_ANONYMOUS=MAP_ANON CLIENT_CFLAGS += $(SDL_CFLAGS) From a47ac2a4517a8ce35f0a2d01684772189c4117db Mon Sep 17 00:00:00 2001 From: Dominic Fandrey Date: Mon, 27 Mar 2017 23:21:48 +0200 Subject: [PATCH 2/2] Use -On level from CFLAGS on FreeBSD --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7b25752e..5d4347d5 100644 --- a/Makefile +++ b/Makefile @@ -660,7 +660,7 @@ ifeq ($(PLATFORM),freebsd) CLIENT_CFLAGS += $(SDL_CFLAGS) HAVE_VM_COMPILED = true - OPTIMIZEVM = -O3 + OPTIMIZEVM = OPTIMIZE = $(OPTIMIZEVM) -ffast-math SHLIBEXT=so