diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-11-28 19:25:01 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-04-16 08:57:22 +0200 |
commit | 071eef1e974f128131afe6c6b5c68a430c64687a (patch) | |
tree | 23d261cd32324bed28ddf115c23070bc4c1eb859 | |
parent | f3e0ace8ecd84009a23da6b0de47f01d79c45772 (diff) | |
download | bitcoin-071eef1e974f128131afe6c6b5c68a430c64687a.tar.xz |
build: Propagate user-defined flags to host packages
-rw-r--r-- | depends/hosts/default.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/depends/hosts/default.mk b/depends/hosts/default.mk index 258619a9d0..57e71ad55f 100644 --- a/depends/hosts/default.mk +++ b/depends/hosts/default.mk @@ -29,8 +29,13 @@ host_$1=$$($(host_arch)_$(host_os)_$1) endef define add_host_flags_func +ifeq ($(filter $(origin $1),undefined default),) +$(host_arch)_$(host_os)_$1 = +$(host_arch)_$(host_os)_$(release_type)_$1 = $($1) +else $(host_arch)_$(host_os)_$1 += $($(host_os)_$1) $(host_arch)_$(host_os)_$(release_type)_$1 += $($(host_os)_$(release_type)_$1) +endif host_$1 = $$($(host_arch)_$(host_os)_$1) host_$(release_type)_$1 = $$($(host_arch)_$(host_os)_$(release_type)_$1) endef |