Skip to content

Commit fe87888

Browse files
committed
depends: Amend handling flags environment variables
If any of {C,CXX,CPP,LD}FLAGS is specified it should be assigned to a non-type-specific variable.
1 parent 5681ff0 commit fe87888

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

depends/hosts/default.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ endef
2828

2929
define add_host_flags_func
3030
ifeq ($(filter $(origin $1),undefined default),)
31-
$(host_arch)_$(host_os)_$1 =
32-
$(host_arch)_$(host_os)_$(release_type)_$1 = $($1)
31+
$(host_arch)_$(host_os)_$1 = $($1)
32+
$(host_arch)_$(host_os)_$(release_type)_$1 =
3333
else
3434
$(host_arch)_$(host_os)_$1 += $($(host_os)_$1)
3535
$(host_arch)_$(host_os)_$(release_type)_$1 += $($(host_os)_$(release_type)_$1)

0 commit comments

Comments
 (0)