macos: ldd does not exit, use otool instead

This commit is contained in:
Christian Jullien 2020-07-09 08:03:31 +02:00
parent 9d75f14107
commit 1ea425811a

View file

@ -79,7 +79,11 @@ endif
RUN_TCC = $(NATIVE_DEFINES) -run $(TOPSRC)/tcc.c $(TCCFLAGS)
DISAS = objdump -d
ifdef CONFIG_OSX
DUMPTCC = (set -x; $(TOP)/tcc -vv; otool -L $(TOP)/tcc; exit 1)
else
DUMPTCC = (set -x; $(TOP)/tcc -vv; ldd $(TOP)/tcc; exit 1)
endif
all test :
@$(MAKE) --no-print-directory -s clean