bsd.linker.mk (bca92be68309e9b0c8f1c1c0a9ca87081c4ab27d) bsd.linker.mk (c4177f5b41d45f3c83a0ef329a50e4ae05da3878)
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:

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

74_ld_version:=${_ld_version:[*]:C/^.* LLD /LLD /:[@]}
75${X_}LINKER_TYPE= lld
76_v= ${_ld_version:[2]}
77.if ${_ld_version:[3]} == "(FreeBSD"
78${X_}LINKER_FREEBSD_VERSION:= ${_ld_version:[4]:C/.*-([^-]*)\)/\1/}
79.else
80${X_}LINKER_FREEBSD_VERSION= 0
81.endif
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:

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

74_ld_version:=${_ld_version:[*]:C/^.* LLD /LLD /:[@]}
75${X_}LINKER_TYPE= lld
76_v= ${_ld_version:[2]}
77.if ${_ld_version:[3]} == "(FreeBSD"
78${X_}LINKER_FREEBSD_VERSION:= ${_ld_version:[4]:C/.*-([^-]*)\)/\1/}
79.else
80${X_}LINKER_FREEBSD_VERSION= 0
81.endif
82.elif ${_ld_version:[1]} == "@(\#)PROGRAM:ld"
82.elif ${_ld_version:[1]:S/-classic$//} == "@(\#)PROGRAM:ld"
83# bootstrap linker on MacOS
84${X_}LINKER_TYPE= mac
83# bootstrap linker on MacOS
84${X_}LINKER_TYPE= mac
85_v= ${_ld_version:[2]:S/PROJECT:ld64-//}
85_v= ${_ld_version:[2]:S/PROJECT:(ld64|dyld)-//}
86# Convert version 409.12 to 409.12.0 so that the echo + awk below works
87.if empty(_v:M[1-9]*.[0-9]*.[0-9]*) && !empty(_v:M[1-9]*.[0-9]*)
88_v:=${_v}.0
89.else
90# Some versions do not contain a minor version so we need to append .0.0 there
91_v:=${_v}.0.0
92.endif
93.else

--- 44 unchanged lines hidden ---
86# Convert version 409.12 to 409.12.0 so that the echo + awk below works
87.if empty(_v:M[1-9]*.[0-9]*.[0-9]*) && !empty(_v:M[1-9]*.[0-9]*)
88_v:=${_v}.0
89.else
90# Some versions do not contain a minor version so we need to append .0.0 there
91_v:=${_v}.0.0
92.endif
93.else

--- 44 unchanged lines hidden ---