--- posix.mak.orig	2019-08-27 09:16:32.000000000 +0900
+++ posix.mak	2019-10-07 09:01:07.000000000 +0900
@@ -36,10 +36,6 @@
 
 include $(DMD_DIR)/src/osmodel.mak
 
-ifeq (osx,$(OS))
-	export MACOSX_DEPLOYMENT_TARGET=10.7
-endif
-
 # Default to a release build, override with BUILD=debug
 ifeq (,$(BUILD))
 BUILD_WAS_SPECIFIED=0
@@ -111,7 +107,7 @@
 OUTFILEFLAG = -o
 NODEFAULTLIB=-defaultlib= -debuglib=
 ifeq (,$(findstring win,$(OS)))
-	CFLAGS=$(MODEL_FLAG) -fPIC -DHAVE_UNISTD_H
+	CFLAGS=$(MACPORTS_CFLAGS) $(MODEL_FLAG) -fPIC -DHAVE_UNISTD_H
 	NODEFAULTLIB += -L-lpthread -L-lm
 	ifeq ($(BUILD),debug)
 		CFLAGS += -g
