Commit 8ed46b76 authored by Alan Third's avatar Alan Third
Browse files

Remove hardcoded gcc version

* configure.ac: Use 'find' to find the brew installed libgccjit libs
instead of a hardcoded path.
parent a9b9ada6
Pipeline #10247 failed with stages
in 169 minutes and 5 seconds
...@@ -3806,8 +3806,10 @@ if test "${with_native_compilation}" != "no"; then ...@@ -3806,8 +3806,10 @@ if test "${with_native_compilation}" != "no"; then
if test -n "$BREW"; then if test -n "$BREW"; then
BREW_LIBGCCJIT_PREFIX=`$BREW --prefix --installed libgccjit 2>/dev/null` BREW_LIBGCCJIT_PREFIX=`$BREW --prefix --installed libgccjit 2>/dev/null`
if test "$BREW_LIBGCCJIT_PREFIX"; then if test "$BREW_LIBGCCJIT_PREFIX"; then
brew_libdir=`find ${BREW_LIBGCCJIT_PREFIX}/ -name \*.so \
| sed -e '1!d;s|/[[^/]]*\.so$||'`
CFLAGS="$CFLAGS -I${BREW_LIBGCCJIT_PREFIX}/include" CFLAGS="$CFLAGS -I${BREW_LIBGCCJIT_PREFIX}/include"
LDFLAGS="$LDFLAGS -L${BREW_LIBGCCJIT_PREFIX}/lib/gcc/10 -I${BREW_LIBGCCJIT_PREFIX}/include" LDFLAGS="$LDFLAGS -L${brew_libdir} -I${BREW_LIBGCCJIT_PREFIX}/include"
fi fi
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment