Changeset View
Changeset View
Standalone View
Standalone View
head/share/mk/bsd.linker.mk
Show All 20 Lines | |||||
# These variables with an X_ prefix will also be provided if XLD is set. | # These variables with an X_ prefix will also be provided if XLD is set. | ||||
# | # | ||||
# This file may be included multiple times, but only has effect the first time. | # This file may be included multiple times, but only has effect the first time. | ||||
# | # | ||||
.if !target(__<bsd.linker.mk>__) | .if !target(__<bsd.linker.mk>__) | ||||
__<bsd.linker.mk>__: | __<bsd.linker.mk>__: | ||||
.for ld X_ in LD $${_empty_var_} XLD X_ | _ld_vars=LD $${_empty_var_} | ||||
.if !empty(_WANT_TOOLCHAIN_CROSS_VARS) | |||||
# Only the toplevel makefile needs to compute the X_LINKER_* variables. | |||||
_ld_vars+=XLD X_ | |||||
.endif | |||||
.for ld X_ in ${_ld_vars} | |||||
.if ${ld} == "LD" || !empty(XLD) | .if ${ld} == "LD" || !empty(XLD) | ||||
# Try to import LINKER_TYPE and LINKER_VERSION from parent make. | # Try to import LINKER_TYPE and LINKER_VERSION from parent make. | ||||
# The value is only used/exported for the same environment that impacts | # The value is only used/exported for the same environment that impacts | ||||
# LD and LINKER_* settings here. | # LD and LINKER_* settings here. | ||||
_exported_vars= ${X_}LINKER_TYPE ${X_}LINKER_VERSION ${X_}LINKER_FEATURES \ | _exported_vars= ${X_}LINKER_TYPE ${X_}LINKER_VERSION ${X_}LINKER_FEATURES \ | ||||
${X_}LINKER_FREEBSD_VERSION | ${X_}LINKER_FREEBSD_VERSION | ||||
${X_}_ld_hash= ${${ld}}${MACHINE}${PATH} | ${X_}_ld_hash= ${${ld}}${MACHINE}${PATH} | ||||
${X_}_ld_hash:= ${${X_}_ld_hash:hash} | ${X_}_ld_hash:= ${${X_}_ld_hash:hash} | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |