bsd.linker.mk (c4177f5b41d45f3c83a0ef329a50e4ae05da3878) | bsd.linker.mk (7f9318a022ef0e5104fd429dc2d9ac37b9916353) |
---|---|
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: --- 68 unchanged lines hidden (view full) --- 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]:S/-classic$//} == "@(\#)PROGRAM:ld" 83# bootstrap linker on MacOS 84${X_}LINKER_TYPE= mac | 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: --- 68 unchanged lines hidden (view full) --- 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]:S/-classic$//} == "@(\#)PROGRAM:ld" 83# bootstrap linker on MacOS 84${X_}LINKER_TYPE= mac |
85_v= ${_ld_version:[2]:S/PROJECT:(ld64|dyld)-//} | 85_v= ${_ld_version:[2]:C/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 --- |