From nobody Wed Mar 27 22:22:10 2024 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 4V4h430F1Yz5FbKy; Wed, 27 Mar 2024 22:22:11 +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 4V4h426ZDpz4vDb; Wed, 27 Mar 2024 22:22:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711578130; 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=hYznK5cwz8x2sRbvsmGZ1kQgy/JnpZirMNlBUP9M/Z4=; b=Pua/YK9jf31gyQmb7v11p2p/Zn45Gd8JDMxcfz8mMNcQxdhbUxQvM/QzFyu19sJt5+CDFZ 6k8R3Hzsaz73VkE1gQ3nfjBwG0l0R4UaQVD+KbmiZa0LIfkkHeCEtaZdINjMQAF8Iq9qVg Qn3W0R7RxfiqUyVOd/6kJTUcQGu8gX6UTCLQPwhqR/YwaQL6e9i/tWwWHXLU9a1FWyTNKJ 5+sHH3LxrO7jcRI7/LJ3yhVQvONsaKv+B55u+nHOFOUuMwtvMb96fYtLsfFhx/YCDvn7U/ HIb/eUAYDfkfXKqzIBgBLZe2SPR07NtdqAWDY2Xv7egIGmXkzOxuw8nFrILavQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711578130; a=rsa-sha256; cv=none; b=Ho6LJmRsu3CaJnL9aFXM7/X9lB3C0JABbm9fDxO6RwZ3Yrr3LXwC1vhDOKtKpmqoYlm/1H BqxLMlKHJB9lpBFf9epy2I7PRYkK9zwW3QwmmwzVwCeGt9qv0u2thfybEvhJ/E0FzmY/b1 4Q04LCKs22ZvrxxHfLUp3Uuw6RZuj5KiJDvuLKNJ+6Y0OLCr3IEXGA9irmNgdeMSiTAoIl jdTdprqQGs4xCBzTlbWLHPGkDf9C07cyHY6rpeL1xXwhpEKmHW5gGfqewNZ0UVTO0goiIZ A6rbT7J7aj6sk4dhLxKp8mxJ4TE3xE/mMd/zdFiC/+OTmwxkahIZXMJbRappIA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711578130; 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=hYznK5cwz8x2sRbvsmGZ1kQgy/JnpZirMNlBUP9M/Z4=; b=m6khKONmrTzGWmzUBNSj/BagjA67hpJhHOyMBbCwOvtea5V0A2aRXm9blqPbyIiwFWwj3+ iC4JVH2zg91Ukglw/CgjuzGkDQCK7mCn+wFDOQfrluVqmsJd8Dnrb9fwUS3TNIOgSDJzv9 oVN0acDp2ijSZ4Ga2eb5HT1f74nTYk5CGYpBx1SLIhQnYCh9vf5nHFvjhXgQxyRUW3CIxF uAOfMTarhqg36LXS02PibrPP11pzlyVAOpsb1k+v/F/uPn4FuI4gP3i7HJYtEI43MUKoAJ HFALICOSrIBCPy3O5O1WdAhWRuJV7GnxC+Orp3VsFKSCRY2E0QennTxsBuK27g== 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 4V4h4268wzz12QX; Wed, 27 Mar 2024 22:22:10 +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 42RMMAn5020682; Wed, 27 Mar 2024 22:22:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42RMMAmA020679; Wed, 27 Mar 2024 22:22:10 GMT (envelope-from git) Date: Wed, 27 Mar 2024 22:22:10 GMT Message-Id: <202403272222.42RMMAmA020679@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Stephen J. Kiernan" Subject: git: 3abd36c68fe4 - main - sys.mk: Define HOST_CC as CC by default. 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: stevek X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3abd36c68fe48b666dc8f6bbbc77d27971488ef7 Auto-Submitted: auto-generated The branch main has been updated by stevek: URL: https://cgit.FreeBSD.org/src/commit/?id=3abd36c68fe48b666dc8f6bbbc77d27971488ef7 commit 3abd36c68fe48b666dc8f6bbbc77d27971488ef7 Author: Stephen J. Kiernan AuthorDate: 2024-03-27 21:25:28 +0000 Commit: Stephen J. Kiernan CommitDate: 2024-03-27 22:21:50 +0000 sys.mk: Define HOST_CC as CC by default. This allows for setting a different compiler for building hostprogs when cross compiling. Obtained from: Juniper Networks, Inc. Reviewed by: sjg Differential Revision: https://reviews.freebsd.org/D44536 --- share/mk/sys.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/mk/sys.mk b/share/mk/sys.mk index d8c5809b0bed..44db9266784f 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -153,6 +153,8 @@ CFLAGS += -fno-strict-aliasing IR_CFLAGS ?= ${STATIC_CFLAGS:N-O*} ${CFLAGS:N-O*} PO_CFLAGS ?= ${CFLAGS} +HOST_CC ?= ${CC} + # cp(1) is used to copy source files to ${.OBJDIR}, make sure it can handle # read-only files as non-root by passing -f. CP ?= cp -f