git: 828ef2017474 - main - textproc/flex: set *_FOR_BUILD variables...
Matthias Andree
mandree at FreeBSD.org
Thu Aug 5 12:07:57 UTC 2021
The branch main has been updated by mandree:
URL: https://cgit.FreeBSD.org/ports/commit/?id=828ef20174745ff612b26c16e17a40f458854ab2
commit 828ef20174745ff612b26c16e17a40f458854ab2
Author: Matthias Andree <mandree at FreeBSD.org>
AuthorDate: 2021-08-05 12:05:08 +0000
Commit: Matthias Andree <mandree at FreeBSD.org>
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
More information about the dev-commits-ports-all
mailing list