-ifdef RC_ARCHS
- ARCHS:=$(RC_ARCHS)
- else
- ifeq "$(Embedded)" "YES"
- ARCHS:=armv7 armv7s arm64
- else
- ARCHS:=x86_64 i386
- endif
-endif
-
-ARCH_32 := $(filter-out %64, $(ARCHS))
-ARCH_32_FLAGS := $(patsubst %, -arch %, $(ARCH_32))
-ARCH_64 := $(filter %64, $(ARCHS))
-ARCH_64_FLAGS := $(patsubst %, -arch %, $(ARCH_64))
-
-CFLAGS :=-g -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
+CFLAGS :=-g -isysroot $(SDKROOT) -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
+CFLAGS += -Wl,-sectcreate,__INFO_FILTER,__disable,/dev/null