Skip to content

Commit 9a3194c

Browse files
committed
depends: Export variables from make to environment explicitly
1 parent 6bc1eca commit 9a3194c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

depends/funcs.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,17 +209,17 @@ $($(1)_configured): | $($(1)_dependencies) $($(1)_preprocessed)
209209
$(AT)echo Configuring $(1)...
210210
$(AT)rm -rf $(host_prefix); mkdir -p $(host_prefix)/lib; cd $(host_prefix); $(foreach package,$($(1)_all_dependencies), tar --no-same-owner -xf $($(package)_cached); )
211211
$(AT)mkdir -p $$(@D)
212-
$(AT)+cd $$(@D); $($(1)_config_env) $(call $(1)_config_cmds, $(1))
212+
$(AT)+cd $$(@D); export $($(1)_config_env); $(call $(1)_config_cmds, $(1))
213213
$(AT)touch $$@
214214
$($(1)_built): | $($(1)_configured)
215215
$(AT)echo Building $(1)...
216216
$(AT)mkdir -p $$(@D)
217-
$(AT)+cd $$(@D); $($(1)_build_env) $(call $(1)_build_cmds, $(1))
217+
$(AT)+cd $$(@D); export $($(1)_build_env); $(call $(1)_build_cmds, $(1))
218218
$(AT)touch $$@
219219
$($(1)_staged): | $($(1)_built)
220220
$(AT)echo Staging $(1)...
221221
$(AT)mkdir -p $($(1)_staging_dir)/$(host_prefix)
222-
$(AT)cd $($(1)_build_dir); $($(1)_stage_env) $(call $(1)_stage_cmds, $(1))
222+
$(AT)cd $($(1)_build_dir); export $($(1)_stage_env); $(call $(1)_stage_cmds, $(1))
223223
$(AT)rm -rf $($(1)_extract_dir)
224224
$(AT)touch $$@
225225
$($(1)_postprocessed): | $($(1)_staged)

0 commit comments

Comments
 (0)