From nobody Thu May 26 00:28:52 2022 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 3D9641AE6947; Thu, 26 May 2022 00:28: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 4L7phP17Jnz4nWR; Thu, 26 May 2022 00:28:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653524933; 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=ZTe/oWx3hlRZ9HvudJ7UmxGkRTcuY4ZrZ9At2y8eMZQ=; b=hwawOnSF46jK40c1YnJew6eWMF14QWAk1eJ1W1kJ6yV+dPyCWaqj7E15lrwfCmv54U1ctP KSxcHw2IiZYucDSOUaseOKFVTwjR6dpVnN20GaZfDIzustsy10QLCLGIxGjVST8kIanJwE /ExHUf1YtuJCS8ukEfy+wE0ozNvItorJtinvhR54DRHyo4IoZD8b/fXn6T2rYdirsDC5Zt 33Ri8OAWN173QxzyPuXYMpAcI3NNFwLwK/+c46KUqCwDEQTlz3b6PUlQjPyEL6CVaptgsp UwAnDBsV9MOD6AfBlcJIdSGfZkW6uUaPtdd1t3JYxh3ztqJmcQrTSI7qlSgjJQ== 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 0784A236BE; Thu, 26 May 2022 00:28:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24Q0SqRQ061724; Thu, 26 May 2022 00:28:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24Q0Sqkr061723; Thu, 26 May 2022 00:28:52 GMT (envelope-from git) Date: Thu, 26 May 2022 00:28:52 GMT Message-Id: <202205260028.24Q0Sqkr061723@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 936d52c10e2f - stable/13 - Hide -fuse-ld= not supported message for non-build targets 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 936d52c10e2fa6d2c106b51842986dce3424be6e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653524933; 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=ZTe/oWx3hlRZ9HvudJ7UmxGkRTcuY4ZrZ9At2y8eMZQ=; b=tBFJ5yzDmK8ciDBR0vD8cC/he9kvZNbiYxKdEUlYcXDjVKi47/g4BrUp8lJsTxoDsMMJap /N5GvL28GHGpkazWm6fjfNIHY+OmHaL175BDBmOub4W0+S+7/xRIxV5NJoOS2qV1GPbCjP u183qAIMPUa4eJVTxD0+ZrxRQMchiPiusSNfQxiYqrCHshmJFGooRAtR1Z1XjhjI1Eq/9y jF4hpaRasZ/avdcIAOozLwSv1hqi9rFKzB5VVUuDPpn89COwGfY+6FfmpMUNnEBaZKFBMT c5uV2Ls4/Fac2GLus9VrJEEAmiotleSymntPLGe2LL8iSahhCc0GuiuSE+ExoA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653524933; a=rsa-sha256; cv=none; b=TkhS3wgjf82abNDDrtMAwbe7vfSnWGHdXp7MZ8zdeOVin8T/VnEnNMuSosWOU63yMIu8bo 7V6VExWrgRbuZLnMBmaLJkU05Cn4OgTH5DIt9ZBC4zhToS4wqH4e6q8R8hXoAZIAF/c/aI WKVNL7aaeCbBXp/wsT//MGSlTQEEgAVdXnoQInNQPg9M4C9/E43Q2o+wWKYAXxE89DL+xf tD1mWc8u9Lg/rSoy2SoZ1SVQK5nEDgPPxXwJmAFRP9X0nOFbzxOXqXgNY6+dAuK2Nj36kl eGNW/vfncxfzHyBU4WtR2I1hPJt1UpAI4AM8ifo655nQB1TUPqFLuj0YDm/7dg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=936d52c10e2fa6d2c106b51842986dce3424be6e commit 936d52c10e2fa6d2c106b51842986dce3424be6e Author: Ed Maste AuthorDate: 2022-05-12 14:49:30 +0000 Commit: Ed Maste CommitDate: 2022-05-26 00:28:21 +0000 Hide -fuse-ld= not supported message for non-build targets In some build configurations a warning about (an absolute path for) -fuse-ld= not being supported by GCC was emitted during cleandir or other non-build make targets. For these non-build targets COMPILER_TYPE is set to "none" but we treated the .else case for COMPILER_TYPE==clang as implying gcc. Check instead for COMPILER_TYPE==gcc. PR: 263913 Reported by: pstef Reviewed by: pstef MFC after: 2 weeks Sponsored by: The FreeBSD Foundation (cherry picked from commit 4143e4fb197bec8cad4cdf129c86d45b0e942fd9) --- share/mk/bsd.sys.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index fefad7996eef..ae4255f8bace 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -327,7 +327,7 @@ LDFLAGS+= --ld-path=${LD:[1]:S/^ld.//1W} .else LDFLAGS+= -fuse-ld=${LD:[1]:S/^ld.//1W} .endif -.else +.elif ${COMPILER_TYPE} == "gcc" # GCC does not support an absolute path for -fuse-ld so we just print this # warning instead and let the user add the required symlinks. # However, we can avoid this warning if -B is set appropriately (e.g. for