From nobody Thu May 12 14:59:19 2022 X-Original-To: dev-commits-src-main@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 2C0361ACA22D; Thu, 12 May 2022 14:59:20 +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 4KzZgD0hBTz4qhL; Thu, 12 May 2022 14:59:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652367560; 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=3JhVj4VL0Kcp5Nz8zovLs5eBkSoQlcgM8rdkLo2Y1hs=; b=ClYUrjbjVVx1dkBveUqhNmiwuQrcgnw6RlV8et/6PRt0FznK5YjrJl6yD/Jegj17/fEr7D U6woMEHfnLx53ndTMydxNNH1qZpI1RFWJ+5GJQHFt/v8yPLqfXykky6srhM99lw3RPC+X0 BVDUx3mxIE3tZN91k8yyZP+jxOFbkFxYuNLyBT6XJDocTveBUlkxfmNvZVhYRiC2upOcxq rjS1nT+WMGwNrrtJwQhdlD7W1/UkwaeaExc2juPC2Sb0Zbd8hd/fMxLB8TYQfJj5px1+rL OVvM6ajPQo7qJ3ivISLAu1Vf0/plv4jocXddQbBOuQUBMhHveBBmxMeRD1qRhQ== 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 EBE007DF5; Thu, 12 May 2022 14:59:19 +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 24CExJ7v071772; Thu, 12 May 2022 14:59:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24CExJw3071771; Thu, 12 May 2022 14:59:19 GMT (envelope-from git) Date: Thu, 12 May 2022 14:59:19 GMT Message-Id: <202205121459.24CExJw3071771@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 4143e4fb197b - main - Hide -fuse-ld= not supported message for non-build targets List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 4143e4fb197bec8cad4cdf129c86d45b0e942fd9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652367560; 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=3JhVj4VL0Kcp5Nz8zovLs5eBkSoQlcgM8rdkLo2Y1hs=; b=inUrwwGQnDI0pexGRFqLEiMptDrLZCDhJY9g1L70/zPO4MWvDxDDQDqgzHYLKQ1gaZ+fKV MrqFSLD+FPwznNHjb3ENgtzcpI8Lb19DTcyfPjs14TE8VZmnLpIjoOWjCqbmN5qhs4Ey9G daziddjedX1A7DMFtgjTAQj3r7QFx9HQDSIKA1sfO0uxtRk0wqj3a58mGwdCPk8+tMxOIz lyJvaOZEP5M5oboOjrXXo0tWZ7f6l1NBpFYeuB76Hafm6VjpDaRoe4nQ6pCloXW/GsLuBQ YByTqq7R8oBBb4DG2mNSwycNVQ6hJKjPNUxYn729wSWjX3wQsFlj1+VlDm0mIQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652367560; a=rsa-sha256; cv=none; b=X9kNwJ4MfsUhqlJ7zRUxW5B0L/r7rxMCABIYhOlJVr0e5NaEAlmsjRgKxPdu+g6maGd6EW ENWu9DWSqvrPn0LZ8NBoEDtswCs1zcT2+Bkf6y1rZEJsoq8mUMvehW0eqNh9FgBnvrwQjl iMLmcZmv16oONL1ekCR0SpC5ah4gTZN/AratuioFgvbUg9vjqPhcg53GBiNZIAWqtgQlpI eyd+EZO0jXcTQKitx4mt5O502b1txqBEbcUux3QnmPzIuABSI1/hWaPBb3boK2ZJvqj5Ps 1xhR3gBnJDzwOIGf0v44ShCSBOhNY//KeGVxkpEh7CvxrBKYI1tArxK2o6EHyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=4143e4fb197bec8cad4cdf129c86d45b0e942fd9 commit 4143e4fb197bec8cad4cdf129c86d45b0e942fd9 Author: Ed Maste AuthorDate: 2022-05-12 14:49:30 +0000 Commit: Ed Maste CommitDate: 2022-05-12 14:59:06 +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 --- 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 f09987ecd962..221e8b028479 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -326,7 +326,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