From owner-dev-commits-ports-main@freebsd.org Thu Aug 5 12:07:57 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1D4C36629A6; Thu, 5 Aug 2021 12:07:57 +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 4GgS6j0311z4yJd; Thu, 5 Aug 2021 12:07:57 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 DDAD119F27; Thu, 5 Aug 2021 12:07:56 +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 175C7uxn020514; Thu, 5 Aug 2021 12:07:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 175C7uhb020513; Thu, 5 Aug 2021 12:07:56 GMT (envelope-from git) Date: Thu, 5 Aug 2021 12:07:56 GMT Message-Id: <202108051207.175C7uhb020513@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Matthias Andree Subject: git: 828ef2017474 - main - textproc/flex: set *_FOR_BUILD variables... MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mandree X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 828ef20174745ff612b26c16e17a40f458854ab2 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2021 12:07:57 -0000 The branch main has been updated by mandree: URL: https://cgit.FreeBSD.org/ports/commit/?id=828ef20174745ff612b26c16e17a40f458854ab2 commit 828ef20174745ff612b26c16e17a40f458854ab2 Author: Matthias Andree AuthorDate: 2021-08-05 12:05:08 +0000 Commit: Matthias Andree CommitDate: 2021-08-05 12:07:23 +0000 textproc/flex: set *_FOR_BUILD variables... ...to unbreak the build when ax_prog_cc_for_build.m4 hunts a host compiler in path, pushing CC aside. PR: 257622 Reported by: Evgeniy Khramtsov --- textproc/flex/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/textproc/flex/Makefile b/textproc/flex/Makefile index 0d39fb3e4e4e..a4db6e07401b 100644 --- a/textproc/flex/Makefile +++ b/textproc/flex/Makefile @@ -16,7 +16,13 @@ USES= bison:alias gmake libtool makeinfo GNU_CONFIGURE= yes # install flex header to its own dir to avoid conflict with system flex. CONFIGURE_ARGS= --includedir=${PREFIX}/include/flex --disable-shared -CONFIGURE_ENV= MAKEINFO="${MAKEINFO} --no-split" +CONFIGURE_ENV= MAKEINFO="${MAKEINFO} --no-split" \ + CC_FOR_BUILD="${CC}" \ + CFLAGS_FOR_BUILD="${CFLAGS}" \ + CPPFLAGS_FOR_BUILD="${CPPFLAGS}" \ + CXX_FOR_BUILD="${CXX}" \ + CXXFLAGS_FOR_BUILD="${CXXFLAGS}" \ + LDFLAGS_FOR_BUILD="${LDFLAGS}" INSTALL_TARGET= install-strip INFO= flex