HomeFreeBSD

llvm: Reduce overlinking with the minimal llvm

Description

llvm: Reduce overlinking with the minimal llvm

We only need to link against libz and libzstd when linking against the
fill libllvm, libllvmminimal doesn't use either library. Move adding
libz and libzstd to the list of libraries to link against to where
we decide to use the full libllvm.

Reported by: Cristian Marussi <Cristian.Marussi@arm.com>
Reported by: Colin S. Gordon <csgordon@fastmail.com>
Reviewed by: dim
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D42528

(cherry picked from commit 83771b1914e182c6324839e05ff82ee6f4a87c98)

Details

Provenance
andrewAuthored on Nov 9 2023, 1:00 PM
dimCommitted on Jan 7 2024, 11:04 PM
Reviewer
dim
Differential Revision
D42528: llvm: Reduce overlinking with the minimal llvm
Parents
rGa2e0c77f941d: arm64 lib32: change clang to allow -m32 on arm64
Branches
Unknown
Tags
Unknown