Skip to content

Commit 80920da

Browse files
committed
Don't include rpath lines in dependency lists
The rpath variable should only be used when executing commands, if it leaks into a dependency list is causes havoc with the dependencies.
1 parent c13a929 commit 80920da

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mk/docs.mk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,7 @@ endif
281281

282282
# The rustdoc executable, rpath included in case --disable-rpath was provided to
283283
# ./configure
284-
RUSTDOC = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) \
285-
$(HBIN2_H_$(CFG_BUILD))/rustdoc$(X_$(CFG_BUILD))
284+
RUSTDOC = $(HBIN2_H_$(CFG_BUILD))/rustdoc$(X_$(CFG_BUILD))
286285

287286
# The library documenting macro
288287
#
@@ -297,7 +296,9 @@ doc/$(1)/index.html: \
297296
$$(foreach dep,$$(RUST_DEPS_$(1)), \
298297
$$(TLIB2_T_$(CFG_BUILD)_H_$(CFG_BUILD))/stamp.$$(dep))
299298
@$$(call E, rustdoc: $$@)
300-
$$(Q)$$(RUSTDOC) --cfg stage2 $$<
299+
$$(Q)$$(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $$(RUSTDOC) \
300+
--cfg stage2 $$<
301+
301302
endef
302303

303304
$(foreach crate,$(CRATES),$(eval $(call libdoc,$(crate))))

0 commit comments

Comments
 (0)