spack/var/spack/repos/builtin/packages/chill/Add-ISLHOME-option.patch
John Jolly d8a7cfc36a
chill: Patch to include gmp, isl, and libquadmath (#16996)
The rose library uses the `strtoflt128` and `quadmath_snprintf`
functions. In order to successfully link the rose library, chill must
also link the GCC libquadmath library to resolve the two functions. This
patch changes the chill build to include this library.

Chill will also not compile unless headers from the gmp and isl
libraries are found in the includes path. Two patches - one each for gmp
and isl - modify the chill build process to add options to specify those
paths. These options follow the similar pattern as seen with BOOSTHOME
and ROSEHOME options which already exist in the chill build process.

Because of the addition of GMPHOME and ISLHOME options, build
requirements for gmp and isl are also added.
2020-06-24 22:53:09 -05:00

54 lines
1.5 KiB
Diff

From 3b4094b9cf1beec0b870e9ca0c3e51ed9b10dc39 Mon Sep 17 00:00:00 2001
From: John Jolly <john.jolly@gmail.com>
Date: Fri, 5 Jun 2020 23:21:18 -0600
Subject: [PATCH] Add ISLHOME option
---
Makefile.am | 4 ++++
configure.ac | 7 +++++++
2 files changed, 11 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index 30667a8..541cb99 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -16,6 +16,8 @@ core_libs += -liegenlib -lisl -lgmp
core_libdirs = -Lomega/code_gen/obj -Lomega/omega_lib/obj
core_libdirs += -L$(ROSEHOME)/lib -L$(BOOSTHOME)/lib
+core_libdirs += -L$(ISLHOME)/lib
+
core_libdirs += -L$(IEGENHOME)/lib
core_libdirs += -L$(IEGENHOME)/../lib/installed/lib
@@ -30,6 +32,8 @@ core_includes += -I$(srcdir)/include/chill
core_includes += -I$(ROSEHOME)/include/rose
core_includes += -I$(BOOSTHOME)/include
+core_includes += -I$(ISLHOME)/include
+
core_includes += -I$(IEGENHOME)/include/iegenlib
core_includes += -I$(IEGENHOME)/../lib/installed/include
diff --git a/configure.ac b/configure.ac
index 8e163cd..e146839 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,6 +65,13 @@ AC_ARG_WITH([iegen],[
],[
AC_SUBST([IEGENHOME], ["${IEGENHOME}"])])
+AC_ARG_WITH([isl],[
+ AS_HELP_STRING([--with-isl],[set path to isl])
+ ],[
+ AC_SUBST([ISLHOME], [$withval])
+ ],[
+ AC_SUBST([ISLHOME], ["${ISLHOME}"])])
+
AC_ARG_WITH([omega],[
AS_HELP_STRING([--with-omega],[set omega home])],[
AC_SUBST([OMEGAHOME], [$withval])],[
--
2.25.1