--- posix.mak.orig	2019-09-01 10:22:36.000000000 +0900
+++ posix.mak	2019-10-07 09:11:57.000000000 +0900
@@ -51,7 +51,6 @@
 ifeq (osx,$(OS))
 	DOTDLL:=.dylib
 	DOTLIB:=.a
-	export MACOSX_DEPLOYMENT_TARGET=10.7
 else
 	DOTDLL:=.so
 	DOTLIB:=.a
@@ -68,12 +67,7 @@
 DDOCFLAGS=-conf= -c -w -o- -Isrc -Iimport -version=CoreDdoc
 
 # Set CFLAGS
-CFLAGS=$(MODEL_FLAG) -fPIC -DHAVE_UNISTD_H
-ifeq ($(BUILD),debug)
-	CFLAGS += -g
-else
-	CFLAGS += -O3
-endif
+CFLAGS=$(MACPORTS_CFLAGS) $(MODEL_FLAG) -fPIC -DHAVE_UNISTD_H
 ifeq (solaris,$(OS))
 	CFLAGS+=-D_REENTRANT  # for thread-safe errno
 endif
