diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2024-09-22 17:12:01 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2024-09-22 17:12:38 +0000 |
commit | f97c7fdc59d252cc8611968ffac541d4b8342b8b (patch) | |
tree | 729a9f94a145d440de7d2e9b3f9ae755ab939c63 /stand/efi/loader/Makefile | |
parent | 54521a2ff93ae06c95c31f79f89dc23c9b51c20b (diff) |
Bump lld LINKER_FREEBSD_VERSION for reproducibility fix
The upstream fix to make lld output for our EFI loaders reproducible
again was committed in 54521a2ff93a. Bump lld's LINKER_FREEBSD_VERSION
to be able to check this in the EFI loader Makefile.
MFC after: 3 days
Diffstat (limited to 'stand/efi/loader/Makefile')
-rw-r--r-- | stand/efi/loader/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/stand/efi/loader/Makefile b/stand/efi/loader/Makefile index ae25910da2c5..e9d29e5a219e 100644 --- a/stand/efi/loader/Makefile +++ b/stand/efi/loader/Makefile @@ -111,10 +111,14 @@ LDFLAGS+= -Wl,-T${LDSCRIPT},-Bsymbolic,-znotext -pie LDFLAGS+= -Wl,--no-dynamic-linker .endif +.include <bsd.linker.mk> + +.if ${LINKER_TYPE} == "lld" && ${LINKER_FREEBSD_VERSION} < 1500001 # When lld is using multiple threads, which it does by default, it can # result in non-reproducible output with the custom linker script. Work # around this by disabling threading. -LDFLAGS.lld+= -Wl,--threads=1 +LDFLAGS+= -Wl,--threads=1 +.endif CLEANFILES+= ${LOADER}.efi |