From nobody Fri Nov 10 10:06:53 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SRZHK6plfz501DM; Fri, 10 Nov 2023 10:06:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SRZHK6FxXz3JFk; Fri, 10 Nov 2023 10:06:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699610813; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MlEGXPYkZc/DBjVATDYLAcVdHiJCaOuaabdw88EeTsw=; b=fbeFz0ySiSE/VQ+8CvIsaqpfOB65NAOw7Xlh6YSI3557NBQ6hm+6HsaznC4tCH1r0Q5BaG 4QO2qNMIzxIwZGzQRWjvFy8maBTUMiWcLgcJoGSlMtohB4C33S61J1v38K9bpk0mnyHzjl 74Mnuwy5alu9f33ABxf+FxHLNS58dJL9fOBn5j4uP48fi3lmZsdi1jA8c81fw+p9xMGngM inUEeTU4lPoqFDCYeRsMh42OOsFAVphzrf5GIJqsOKI3xhB0IhTRfMgh88685s1Sa8yzw/ GBrUM9KvzWI6BI5hWJVYilFMfLUr0bqWtUcC4zKe/EiIDLelV8XSuI53qMPy9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699610813; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MlEGXPYkZc/DBjVATDYLAcVdHiJCaOuaabdw88EeTsw=; b=qW9RK0VL/V8f/uEphGfFJnhXD8iVXgyIJrulNnkqybx3RVk6PPj7dKaU6hGQK/p+AX+R9R jyq50eI9NqJ39tcisaVg9DERGYj6t3XntDUWTcIBYa7YzK6Cii/fk412PAVmfNCBvRyQxj DS/8XvJqBfXY6pu78SFdL7uRUZbTXyNpGuAZCWgr61pxHMjIv84xr94wPrbSIz3Y6iCHQ4 p1zsTMw5hqGAN9vWsVDjJ1XkV7VzINXFjP1JdSiCKU1qOdWQkWzvYW7a/Mc0SWwvu+rBTi vvGL6QcCvA/AAFrGRikssvlzdLb44URyQPJv70onmgksKpD1SFr0YgtA3xsJUA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699610813; a=rsa-sha256; cv=none; b=t0+ByFpgyPEN+VRl3mxSC75le43MuTFk5dXxBpSdC2yXK+2/17YOuxF4WVjaUfirHdgK9y EpFov73UwKGZfVRJofYRz/OqjjMGfvd+Bra79bK6umAuhS1G06LtHO9fTzgEgU01pIg2Yc clfyIbuUSJDt+aMpWboMlROx/9KHehHMhhfFVlVzCrIXdREXS0lwd6UE0zIuQMEiRmUbFd QcPcgH2/hI3Qslok7W4+OFJm2ORLW44ZSxvsaY4VnuTpM5eD0hH+Sg2PRucrnUoVmIaHP6 KD+sKkW7KE7cTP9yiLB1QJx0uOk3q2/jm4EiVVyf9iGCqIOSfXDUqGp9zsX7zA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SRZHK5BN5zsr6; Fri, 10 Nov 2023 10:06:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3AAA6rnM016531; Fri, 10 Nov 2023 10:06:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AAA6rWx016528; Fri, 10 Nov 2023 10:06:53 GMT (envelope-from git) Date: Fri, 10 Nov 2023 10:06:53 GMT Message-Id: <202311101006.3AAA6rWx016528@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 83771b1914e1 - main - llvm: Reduce overlinking with the minimal llvm List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 83771b1914e182c6324839e05ff82ee6f4a87c98 Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=83771b1914e182c6324839e05ff82ee6f4a87c98 commit 83771b1914e182c6324839e05ff82ee6f4a87c98 Author: Andrew Turner AuthorDate: 2023-11-09 13:00:51 +0000 Commit: Andrew Turner CommitDate: 2023-11-10 09:57:44 +0000 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 Reported by: Colin S. Gordon Reviewed by: dim Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D42528 --- usr.bin/clang/clang.prog.mk | 4 ++-- usr.bin/clang/llvm.prog.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.bin/clang/clang.prog.mk b/usr.bin/clang/clang.prog.mk index c15b846c5aa8..cf48f02359e9 100644 --- a/usr.bin/clang/clang.prog.mk +++ b/usr.bin/clang/clang.prog.mk @@ -14,6 +14,8 @@ LIBDEPS+= llvmminimal .else LIBDEPS+= clang LIBDEPS+= llvm +LIBADD+= z +LIBADD+= zstd .endif .for lib in ${LIBDEPS} @@ -28,7 +30,5 @@ LIBADD+= execinfo LIBADD+= ncursesw .endif LIBADD+= pthread -LIBADD+= z -LIBADD+= zstd .include diff --git a/usr.bin/clang/llvm.prog.mk b/usr.bin/clang/llvm.prog.mk index 87f804063c86..0c102730999f 100644 --- a/usr.bin/clang/llvm.prog.mk +++ b/usr.bin/clang/llvm.prog.mk @@ -12,6 +12,8 @@ CFLAGS+= -I${OBJTOP}/lib/clang/libllvm LIBDEPS+= llvmminimal .else LIBDEPS+= llvm +LIBADD+= z +LIBADD+= zstd .endif .for lib in ${LIBDEPS} @@ -26,7 +28,5 @@ LIBADD+= execinfo LIBADD+= tinfow .endif LIBADD+= pthread -LIBADD+= z -LIBADD+= zstd .include