git: 254cdd5b2214 - stable/13 - Apply build fix for powerpc64-specific llvm-ar and llvm-nm link error
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 23 Jul 2023 18:27:20 UTC
The branch stable/13 has been updated by dim:
URL: https://cgit.FreeBSD.org/src/commit/?id=254cdd5b2214112fb78462919433024589b2bcac
commit 254cdd5b2214112fb78462919433024589b2bcac
Author: Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-07-23 18:26:01 +0000
Commit: Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-07-23 18:26:01 +0000
Apply build fix for powerpc64-specific llvm-ar and llvm-nm link error
Only on powerpc64, llvm-ar and llvm-nm could fail to link due to a
"undefined symbol: ZSTD_compressBound" error. This does not happen on
-CURRENT, so directly apply a specific build fix on stable/13.
---
usr.bin/clang/llvm-ar/Makefile | 1 +
usr.bin/clang/llvm-nm/Makefile | 1 +
2 files changed, 2 insertions(+)
diff --git a/usr.bin/clang/llvm-ar/Makefile b/usr.bin/clang/llvm-ar/Makefile
index 3718248f5de9..dd58fb18c417 100644
--- a/usr.bin/clang/llvm-ar/Makefile
+++ b/usr.bin/clang/llvm-ar/Makefile
@@ -11,6 +11,7 @@ SRCS+= llvm-ar.cpp
CFLAGS.llvm-ar.cpp+= -Dllvm_ar_main=main
LIBADD+= z
+LIBADD+= zstd
LINKS+= ${BINDIR}/llvm-ar ${BINDIR}/llvm-ranlib
diff --git a/usr.bin/clang/llvm-nm/Makefile b/usr.bin/clang/llvm-nm/Makefile
index 30071da0e7dc..2c19f02e49de 100644
--- a/usr.bin/clang/llvm-nm/Makefile
+++ b/usr.bin/clang/llvm-nm/Makefile
@@ -26,6 +26,7 @@ DPSRCS+= ${TGHDRS}
CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/}
LIBADD+= z
+LIBADD+= zstd
.if ${MK_LLVM_BINUTILS} != "no"
LINKS+= ${BINDIR}/llvm-nm ${BINDIR}/nm