macos: Add DYLD_LIBRARY_PATH to tcc when configured with --disable-static - i.e. with .dylib support

This commit is contained in:
Christian Jullien 2020-06-23 09:14:02 +02:00
parent 9617ea6a3a
commit 15e4f8b3b0

View File

@ -8,7 +8,11 @@ VPATH = $(TOPSRC)/lib $(TOPSRC)/win32/lib
T = $(or $(CROSS_TARGET),$(NATIVE_TARGET),unknown) T = $(or $(CROSS_TARGET),$(NATIVE_TARGET),unknown)
X = $(if $(CROSS_TARGET),$(CROSS_TARGET)-) X = $(if $(CROSS_TARGET),$(CROSS_TARGET)-)
ifdef CONFIG_OSX
XTCC ?= DYLD_LIBRARY_PATH=$(TOP) $(TOP)/$(X)tcc$(EXESUF)
else
XTCC ?= $(TOP)/$(X)tcc$(EXESUF) XTCC ?= $(TOP)/$(X)tcc$(EXESUF)
endif
XCC = $(XTCC) XCC = $(XTCC)
XAR = $(XTCC) -ar XAR = $(XTCC) -ar
XFLAGS-unx = -B$(TOPSRC) XFLAGS-unx = -B$(TOPSRC)