mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Remove hardcoded gcc version
* configure.ac: Use 'find' to find the brew installed libgccjit libs instead of a hardcoded path.
This commit is contained in:
parent
a9b9ada6bf
commit
8ed46b7646
1 changed files with 3 additions and 1 deletions
|
|
@ -3806,8 +3806,10 @@ if test "${with_native_compilation}" != "no"; then
|
|||
if test -n "$BREW"; then
|
||||
BREW_LIBGCCJIT_PREFIX=`$BREW --prefix --installed libgccjit 2>/dev/null`
|
||||
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"
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue