Skip to content

Commit

Permalink
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.
  • Loading branch information
hebasto committed Mar 17, 2024
1 parent 0e9192c commit 3cf702f
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
Expand Up @@ -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)
Expand Down

0 comments on commit 3cf702f

Please sign in to comment.