bsd.linker.mk (eb834d9f1b7de191b4ce4787759cf8735cac6102) bsd.linker.mk (9caf7b3610fc461d10bf5d4f75d02973e08eb78f)
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:

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

65.if ${_ld_version:[1..2]} == "GNU ld"
66${X_}LINKER_TYPE= bfd
67${X_}LINKER_FREEBSD_VERSION= 0
68_v= ${_ld_version:M[1-9]*.[0-9]*:[1]}
69.elif ${_ld_version:[1]} == "LLD"
70${X_}LINKER_TYPE= lld
71_v= ${_ld_version:[2]}
72.if ${_ld_version:[3]} == "(FreeBSD"
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:

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

65.if ${_ld_version:[1..2]} == "GNU ld"
66${X_}LINKER_TYPE= bfd
67${X_}LINKER_FREEBSD_VERSION= 0
68_v= ${_ld_version:M[1-9]*.[0-9]*:[1]}
69.elif ${_ld_version:[1]} == "LLD"
70${X_}LINKER_TYPE= lld
71_v= ${_ld_version:[2]}
72.if ${_ld_version:[3]} == "(FreeBSD"
73${X_}LINKER_FREEBSD_VERSION:= ${_ld_version:[4]:C/.*-(.*)\)/\1/}
73${X_}LINKER_FREEBSD_VERSION:= ${_ld_version:[4]:C/.*-([^-]*)\)/\1/}
74.else
75${X_}LINKER_FREEBSD_VERSION= 0
76.endif
77.else
78.warning Unknown linker from ${ld}=${${ld}}: ${_ld_version}, defaulting to bfd
79${X_}LINKER_TYPE= bfd
80_v= 2.17.50
81.endif

--- 37 unchanged lines hidden ---
74.else
75${X_}LINKER_FREEBSD_VERSION= 0
76.endif
77.else
78.warning Unknown linker from ${ld}=${${ld}}: ${_ld_version}, defaulting to bfd
79${X_}LINKER_TYPE= bfd
80_v= 2.17.50
81.endif

--- 37 unchanged lines hidden ---