diff --git a/configure.ac b/configure.ac index 741a1a31df5..03eb9783a9b 100644 --- a/configure.ac +++ b/configure.ac @@ -3844,7 +3844,7 @@ if test "${with_native_compilation}" != "no"; then MAC_CFLAGS="-I$(dirname $($BREW ls -v libgccjit | \ grep libgccjit.h))" MAC_LIBS="-L$(dirname $($BREW ls -v libgccjit| \ - grep libgccjit.so\$))" + grep -E 'libgccjit\.(so|dylib)$'))" fi fi