mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
3bee51427a
This is only needed when compiling on macOS. This means we can also better scope the usage of `-headerpad_max_install_names`.
20 lines
774 B
Makefile
20 lines
774 B
Makefile
default_build_CC = gcc
|
|
default_build_CXX = g++
|
|
default_build_AR = ar
|
|
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 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)
|
|
endef
|
|
$(foreach flags, CFLAGS CXXFLAGS LDFLAGS, $(eval $(call add_build_flags_func,$(flags))))
|