summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Möllmann <gerd@gnu.org>2022-08-19 10:52:52 +0200
committerGerd Möllmann <gerd@gnu.org>2022-08-19 11:02:20 +0200
commit16dfe04be2c57fc82ccdd56cad97b39d559a5afe (patch)
treea31c80421deff45ae81474c15a7aae5726318516
parente64d811b510a8579a97639d5c3018622eb43e4d5 (diff)
downloademacs-16dfe04be2c57fc82ccdd56cad97b39d559a5afe.tar.gz
Find libgccjit on macOS with Homebrew differently
* configure.ac (MAC_LIBS): Find libgccjit's directory slightly differently for brew installations.
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 57b86e85423..bc7485b81c8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3843,8 +3843,8 @@ if test "${with_native_compilation}" != "no"; then
if test -n "`$BREW --prefix --installed libgccjit 2>/dev/null`"; then
MAC_CFLAGS="-I$(dirname $($BREW ls -v libgccjit | \
grep libgccjit.h))"
- MAC_LIBS="-L$(dirname $($BREW ls -v libgccjit| \
- grep -E 'libgccjit\.(so|dylib)$'))"
+ MAC_LIBS="-L$(dirname $($BREW ls -v libgccjit \
+ | grep -m1 -E 'libgccjit\.(so|dylib)$'))"
fi
fi