Patchwork Fix configure --with-cloog

login
register
mail settings
Submitter Romain Geissler
Date July 6, 2011, 9:04 a.m.
Message ID <CAF+LTed4w-ZLPwZrpfgL1gMFFOAB14TrxKBSOJam4+GaAxh5sQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/103441/
State New
Headers show

Comments

Romain Geissler - July 6, 2011, 9:04 a.m.
Hello

This patch fix an issue while building with cloog and gmp installed in
a custom separate directories.

How to reproduce :
 - Make sure you've installed cloog and gmp in separate directories
(ie ${WITH-CLOOG-PATH}/lib doesn't contain libgmp)
 - Make sure neither gmp nor cloog is not installed in a directory
searched by default by your linker when looking for libs.
 - Launch configure script with both --with-gmp and --with-cloog
switch properly set

This result in an unexpected error while configuring: error: Unable to
find a usable CLooG.


2011-07-06  Romain Geissler  <romain.geissler@gmail.com>

       * configure: Add $gmplibs to cloog $LDFLAGS
Romain Geissler - July 25, 2011, 7:10 p.m.
Le 6 juil. 2011 à 11:04, Romain Geissler a écrit :

> Hello
> 
> This patch fix an issue while building with cloog and gmp installed in
> a custom separate directories.
> 
> How to reproduce :
> - Make sure you've installed cloog and gmp in separate directories
> (ie ${WITH-CLOOG-PATH}/lib doesn't contain libgmp)
> - Make sure neither gmp nor cloog is not installed in a directory
> searched by default by your linker when looking for libs.
> - Launch configure script with both --with-gmp and --with-cloog
> switch properly set
> 
> This result in an unexpected error while configuring: error: Unable to
> find a usable CLooG.
> 
> 
> 2011-07-06  Romain Geissler  <romain.geissler@gmail.com>
> 
>       * configure: Add $gmplibs to cloog $LDFLAGS
> 
> Index: configure
> ===================================================================
> --- configure   (revision 175709)
> +++ configure   (working copy)
> @@ -5713,7 +5713,7 @@ if test "x$with_cloog" != "xno"; then
> 
>     CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
>   CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
> -  LDFLAGS="${LDFLAGS} ${clooglibs}"
> +  LDFLAGS="${LDFLAGS} ${clooglibs} ${gmplibs}"
> 
>   case $cloog_backend in
>     "ppl-legacy")

Ping !
Romain Geissler - Aug. 23, 2011, 2:50 p.m.
Ping

Patch

Index: configure
===================================================================
--- configure   (revision 175709)
+++ configure   (working copy)
@@ -5713,7 +5713,7 @@  if test "x$with_cloog" != "xno"; then

     CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
   CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
-  LDFLAGS="${LDFLAGS} ${clooglibs}"
+  LDFLAGS="${LDFLAGS} ${clooglibs} ${gmplibs}"

   case $cloog_backend in
     "ppl-legacy")