emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/native-comp 8ed46b7: Remove hardcoded gcc version


From: Alan Third
Subject: feature/native-comp 8ed46b7: Remove hardcoded gcc version
Date: Wed, 7 Apr 2021 14:06:38 -0400 (EDT)

branch: feature/native-comp
commit 8ed46b7646de7166aa8bbd3b5d29a4947316c900
Author: Alan Third <alan@idiocy.org>
Commit: Alan Third <alan@idiocy.org>

    Remove hardcoded gcc version
    
    * configure.ac: Use 'find' to find the brew installed libgccjit libs
    instead of a hardcoded path.
---
 configure.ac | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 698e8af..3892eae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]