|
|
|
@ -5,13 +5,14 @@ default_build_TAR = tar
|
|
|
|
|
default_build_RANLIB = ranlib
|
|
|
|
|
default_build_STRIP = strip
|
|
|
|
|
default_build_NM = nm
|
|
|
|
|
default_build_TOUCH = touch -h -m -t 200001011200
|
|
|
|
|
|
|
|
|
|
define add_build_tool_func
|
|
|
|
|
build_$(build_os)_$1 ?= $$(default_build_$1)
|
|
|
|
|
build_$(build_arch)_$(build_os)_$1 ?= $$(build_$(build_os)_$1)
|
|
|
|
|
build_$1=$$(build_$(build_arch)_$(build_os)_$1)
|
|
|
|
|
endef
|
|
|
|
|
$(foreach var,CC CXX AR TAR RANLIB NM STRIP SHA256SUM DOWNLOAD OTOOL INSTALL_NAME_TOOL DSYMUTIL,$(eval $(call add_build_tool_func,$(var))))
|
|
|
|
|
$(foreach var,CC CXX AR TAR RANLIB NM STRIP SHA256SUM DOWNLOAD OTOOL INSTALL_NAME_TOOL DSYMUTIL TOUCH,$(eval $(call add_build_tool_func,$(var))))
|
|
|
|
|
define add_build_flags_func
|
|
|
|
|
build_$(build_arch)_$(build_os)_$1 += $(build_$(build_os)_$1)
|
|
|
|
|
build_$1=$$(build_$(build_arch)_$(build_os)_$1)
|
|
|
|
|