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

Details

Provenance
andrewAuthored on Nov 9 2023, 1:00 PM
Reviewer
dim
Differential Revision
D42528: llvm: Reduce overlinking with the minimal llvm
Parents
rG8f2848eafa68: crunchgen: fix "keep" for an ELF world, break it out
Branches
Unknown
Tags
Unknown