]> git.eshelyaron.com Git - emacs.git/commitdiff
Find libgccjit on macOS with Homebrew differently
authorGerd Möllmann <gerd@gnu.org>
Fri, 19 Aug 2022 08:52:52 +0000 (10:52 +0200)
committerGerd Möllmann <gerd@gnu.org>
Fri, 19 Aug 2022 09:02:20 +0000 (11:02 +0200)
* configure.ac (MAC_LIBS): Find libgccjit's directory slightly
differently for brew installations.

configure.ac

index 57b86e8542397857f529b26cb4f1baa12f9667d4..bc7485b81c88c5b53a8e7a46304c0eb5f403e354 100644 (file)
@@ -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