1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-20 18:17:20 +00:00

* configure.ac: Better messaging when libgccjit fails smoke test

* configure.ac: Fix libgccjit test LDFLAGS plus better messaging
	in case of its fail.
This commit is contained in:
Andrea Corallo 2020-05-05 08:47:51 +01:00
parent 766f4b96ee
commit a261db1711

View File

@ -3777,15 +3777,18 @@ to configure.])])
AC_DEFUN([libgccjit_broken], [
AC_MSG_ERROR([Installed libgccjit has failed passing the smoke test.
You can verify it yourself compiling:
<https://gcc.gnu.org/onlinedocs/jit/intro/tutorial01.html>.
Please report the issue to your distribution.
Here instructions on how to compile from source: https://gcc.gnu.org/wiki/JIT.])])
Here instructions on how to compile from source:
<https://gcc.gnu.org/wiki/JIT>.])])
HAVE_NATIVE_COMP=no
LIBGCCJIT_LIB=
COMP_OBJ=
if test "${with_nativecomp}" != "no"; then
emacs_save_LDFLAGS=$LDFLAGS
LDFLAGS="-lgccjit -ldl"
LDFLAGS="-lgccjit"
AC_RUN_IFELSE([libgccjit_smoke_test], [], [libgccjit_broken],
[AC_LINK_IFELSE([libgccjit_smoke_test], [], [libgccjit_not_found])])
LDFLAGS=$emacs_save_LDFLAGS