Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
depends: Amend handling flags environment variables
Browse files Browse the repository at this point in the history
If any of {C,CXX,CPP,LD}FLAGS is specified it should be assigned to
a non-type-specific variable.
hebasto committed Feb 9, 2024
1 parent cc975c1 commit 31b4028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions depends/hosts/default.mk
Original file line number Diff line number Diff line change
@@ -28,8 +28,8 @@ 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)
$(host_arch)_$(host_os)_$1 = $($1)
$(host_arch)_$(host_os)_$(release_type)_$1 =
else
$(host_arch)_$(host_os)_$1 += $($(host_os)_$1)
$(host_arch)_$(host_os)_$(release_type)_$1 += $($(host_os)_$(release_type)_$1)

0 comments on commit 31b4028

Please sign in to comment.