Skip to content

Commit 071eef1

Browse files
committed
build: Propagate user-defined flags to host packages
1 parent f3e0ace commit 071eef1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

depends/hosts/default.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@ host_$1=$$($(host_arch)_$(host_os)_$1)
2929
endef
3030

3131
define add_host_flags_func
32+
ifeq ($(filter $(origin $1),undefined default),)
33+
$(host_arch)_$(host_os)_$1 =
34+
$(host_arch)_$(host_os)_$(release_type)_$1 = $($1)
35+
else
3236
$(host_arch)_$(host_os)_$1 += $($(host_os)_$1)
3337
$(host_arch)_$(host_os)_$(release_type)_$1 += $($(host_os)_$(release_type)_$1)
38+
endif
3439
host_$1 = $$($(host_arch)_$(host_os)_$1)
3540
host_$(release_type)_$1 = $$($(host_arch)_$(host_os)_$(release_type)_$1)
3641
endef

0 commit comments

Comments
 (0)