mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
Fix building rescue/rescue when sanitizers are enabled
We have to ensure that we don't link any instrumented object files into rescue as it is a static executable and static binaries can't use the sanitizer runtime. Reviewed By: imp Differential Revision: https://reviews.freebsd.org/D31044
This commit is contained in:
parent
c78f449d85
commit
2eefc1d926
@ -6,7 +6,12 @@
|
||||
PACKAGE=rescue
|
||||
MAN=
|
||||
MK_SSP= no
|
||||
# Static-PIE is not supported so we should not be linking against _pie.a libs.
|
||||
# This is also needed to avoid linking against sanitizer-instrumented libraries
|
||||
# since MK_ASAN/MK_UBSAN will instrument the .pieo object files.
|
||||
MK_PIE= no
|
||||
NO_SHARED= yes
|
||||
CRUNCH_BUILDOPTS+= MK_PIE=no NO_SHARED=yes
|
||||
|
||||
PROG= rescue
|
||||
BINDIR?=/rescue
|
||||
|
Loading…
Reference in New Issue
Block a user