Suppress lld 16 errors about multiply defined symbols in rescue
lld >= 16 became more strict about multiply defined symbols. Since there are many of those in crunchgen'd programs, turn off the check when linking the rescue binary. MFC after: 1 week
This commit is contained in:
parent
67ecab6f50
commit
458f4722bf
@ -13,6 +13,12 @@ MK_PIE= no
|
|||||||
NO_SHARED= yes
|
NO_SHARED= yes
|
||||||
CRUNCH_BUILDOPTS+= MK_PIE=no NO_SHARED=yes
|
CRUNCH_BUILDOPTS+= MK_PIE=no NO_SHARED=yes
|
||||||
|
|
||||||
|
# lld >= 16 became more strict about multiply defined symbols. Since there are
|
||||||
|
# many of those in crunchgen'd programs, turn off the check.
|
||||||
|
.if ${LINKER_TYPE} == "lld" && ${LINKER_VERSION} >= 160000
|
||||||
|
LDFLAGS+= -Wl,--allow-multiple-definition
|
||||||
|
.endif
|
||||||
|
|
||||||
PROG= rescue
|
PROG= rescue
|
||||||
BINDIR?=/rescue
|
BINDIR?=/rescue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user