This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
ISL version check patch
- From: Nathan Sidwell <nathan at acm dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, Richard Guenther <richard dot guenther at gmail dot com>, sebastian Pop <s dot pop at samsung dot com>
- Date: Wed, 16 Dec 2015 16:22:50 -0500
- Subject: ISL version check patch
- Authentication-results: sourceware.org; auth=none
This patch https://gcc.gnu.org/ml/gcc-patches/2015-12/msg01273.html breaks
builds using static libisl & libgmp. (a whole slew of undefined __gmpz_FOO
symbols).
Fixed with the attached patch to add -lgmp etc to the isl link test. ok?
nathan
2015-12-16 Nathan Sidwell <nathan@acm.org>
* config/isl.m4 (ISL_CHECK_VERSION): Add gmp libs.
* configure: Regenerate.
Index: config/isl.m4
===================================================================
--- config/isl.m4 (revision 231721)
+++ config/isl.m4 (working copy)
@@ -103,8 +103,8 @@ AC_DEFUN([ISL_CHECK_VERSION],
_isl_saved_LIBS=$LIBS
CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
- LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
- LIBS="${_isl_saved_LIBS} -lisl"
+ LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
+ LIBS="${_isl_saved_LIBS} -lisl -lgmp"
AC_MSG_CHECKING([for isl 0.15 (or deprecated 0.14)])
AC_TRY_LINK([#include <isl/ctx.h>],
Index: configure
===================================================================
--- configure (revision 231721)
+++ configure (working copy)
@@ -6017,8 +6017,8 @@ $as_echo "$as_me: WARNING: using in-tree
_isl_saved_LIBS=$LIBS
CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
- LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
- LIBS="${_isl_saved_LIBS} -lisl"
+ LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
+ LIBS="${_isl_saved_LIBS} -lisl -lgmp"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 (or deprecated 0.14)" >&5
$as_echo_n "checking for isl 0.15 (or deprecated 0.14)... " >&6; }