diff --git a/configure.ac b/configure.ac index 7c8638a4715..53e5779e2f7 100644 --- a/configure.ac +++ b/configure.ac @@ -4126,7 +4126,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