macos: Add system include dir for building libs

we use xcrun to determine the correct path.  In the future those
should be determined at configure time or even runtime of tcc itself.
This commit is contained in:
Michael Matz 2020-05-09 00:38:32 +02:00
parent 4cc27b816f
commit 34a5658564

View File

@ -17,6 +17,10 @@ XFLAGS = $(XFLAGS$(XCFG)) -I$(TOP)
XCFG = $(or $(findstring -win,$T),-unx)
S = $(if $(findstring yes,$(SILENT)),@$(info * $@))
ifdef CONFIG_OSX
XFLAGS += -I`xcrun --show-sdk-path`/usr/include
endif
# in order to use gcc, type: make <target>-libtcc1-usegcc=yes
arm-libtcc1-usegcc ?= no