]> git.eshelyaron.com Git - emacs.git/commitdiff
* configure.ac: Better messaging when libgccjit fails smoke test
authorAndrea Corallo <akrl@sdf.org>
Tue, 5 May 2020 07:47:51 +0000 (08:47 +0100)
committerAndrea Corallo <akrl@sdf.org>
Tue, 5 May 2020 07:57:47 +0000 (08:57 +0100)
* configure.ac: Fix libgccjit test LDFLAGS plus better messaging
in case of its fail.

configure.ac

index af12f20500d9c3eba1fc9fa5ce3fecad0518e391..62fb274d3bb1eb2970f0495114551f90d4c1ef2c 100644 (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