mirror of
https://github.com/frida/tinycc
synced 2024-11-28 10:33:07 +03:00
macos: workaround to build tcc using tcc until .o object files generated by tcc are fully compatible with ar. Instead of ar, use 'tcc -ar'
This commit is contained in:
parent
3c53d54a43
commit
9617ea6a3a
8
Makefile
8
Makefile
@ -48,7 +48,9 @@ else
|
||||
NATIVE_TARGET = $(ARCH)
|
||||
ifdef CONFIG_OSX
|
||||
NATIVE_TARGET = $(ARCH)-osx
|
||||
LDFLAGS += -flat_namespace -undefined warning
|
||||
ifneq ($(CC),tcc)
|
||||
LDFLAGS += -flat_namespace -undefined warning
|
||||
endif
|
||||
export MACOSX_DEPLOYMENT_TARGET := 10.6
|
||||
endif
|
||||
endif
|
||||
@ -224,7 +226,11 @@ tcc_p$(EXESUF): $($T_FILES)
|
||||
|
||||
# static libtcc library
|
||||
libtcc.a: $(LIBTCC_OBJ)
|
||||
ifeq ($(CC),tcc)
|
||||
$(CC) -ar rcs $@ $^
|
||||
else
|
||||
$S$(AR) rcs $@ $^
|
||||
endif
|
||||
|
||||
# dynamic libtcc library
|
||||
libtcc.so: $(LIBTCC_OBJ)
|
||||
|
Loading…
Reference in New Issue
Block a user