From bdf1ef508983fd5ebae5c42442f93690277dc69d Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Wed, 4 Aug 2021 09:17:21 +0300 Subject: [PATCH] textproc/flex: respect CC configure:14802: $? = 1 configure:14806: checking whether we are using the GNU C compiler configure:14834: result: yes configure:14843: checking whether /usr/local/llvm12/bin/clang accepts -g configure:14904: result: yes configure:14921: checking for /usr/local/llvm12/bin/clang option to accept ISO C89 configure:14997: result: none needed configure:15022: checking whether /usr/local/llvm12/bin/clang understands -c and -o together configure:15059: result: yes configure:15132: checking for gcc configure:15162: result: no configure:15225: checking for cc configure:15272: result: no configure:15328: checking for cl.exe configure:15358: result: no configure:15382: error: in `/usr/local/poudriere/ports/ei/textproc/flex/work/flex-2.6.4': configure:15385: error: no acceptable C compiler found in $PATH --- textproc/flex/files/patch-configure | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 textproc/flex/files/patch-configure diff --git a/textproc/flex/files/patch-configure b/textproc/flex/files/patch-configure new file mode 100644 index 000000000000..bbe235d3fe5a --- /dev/null +++ b/textproc/flex/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig 2017-05-06 14:49:08 UTC ++++ configure +@@ -15378,7 +15378,7 @@ fi + + fi + +- ++CC_FOR_BUILD="${CC}" + test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + as_fn_error $? "no acceptable C compiler found in \$PATH -- 2.32.0