bsd.linker.mk (1930b98d497ccb379486f054182cd73c8477cff7) bsd.linker.mk (7ccdc068295378637bdf50ae4500d36e3282f8da)
1# $FreeBSD$
2
3# Setup variables for the linker.
4#
5# LINKER_TYPE is the major type of linker. Currently binutils and lld support
6# automatic detection.
7#
8# LINKER_VERSION is a numeric constant equal to:

--- 35 unchanged lines hidden (view full) ---

44.if defined(${var}.${${X_}_ld_hash})
45${var}= ${${var}.${${X_}_ld_hash}}
46.endif
47.endfor
48.endif
49
50.if ${ld} == "LD" || (${ld} == "XLD" && ${XLD} != ${LD})
51.if !defined(${X_}LINKER_TYPE) || !defined(${X_}LINKER_VERSION)
1# $FreeBSD$
2
3# Setup variables for the linker.
4#
5# LINKER_TYPE is the major type of linker. Currently binutils and lld support
6# automatic detection.
7#
8# LINKER_VERSION is a numeric constant equal to:

--- 35 unchanged lines hidden (view full) ---

44.if defined(${var}.${${X_}_ld_hash})
45${var}= ${${var}.${${X_}_ld_hash}}
46.endif
47.endfor
48.endif
49
50.if ${ld} == "LD" || (${ld} == "XLD" && ${XLD} != ${LD})
51.if !defined(${X_}LINKER_TYPE) || !defined(${X_}LINKER_VERSION)
52_ld_version!= (${${ld}} --version || echo none) | sed -n '1,1p'
52_ld_version!= (${${ld}} --version || echo none) | sed -n 1p
53.if ${_ld_version} == "none"
54.warning Unable to determine linker type from ${ld}=${${ld}}
55.endif
56.if ${_ld_version:[1..2]} == "GNU ld"
57${X_}LINKER_TYPE= bfd
58_v= ${_ld_version:M[1-9].[0-9]*:[1]}
59.elif ${_ld_version:[1]} == "LLD"
60${X_}LINKER_TYPE= lld

--- 42 unchanged lines hidden ---
53.if ${_ld_version} == "none"
54.warning Unable to determine linker type from ${ld}=${${ld}}
55.endif
56.if ${_ld_version:[1..2]} == "GNU ld"
57${X_}LINKER_TYPE= bfd
58_v= ${_ld_version:M[1-9].[0-9]*:[1]}
59.elif ${_ld_version:[1]} == "LLD"
60${X_}LINKER_TYPE= lld

--- 42 unchanged lines hidden ---