diff mbox

Fix PR54659, include gmp.h from system.h

Message ID 20121222105157.3AB523BC70@mailhost.lps.ens.fr
State New
Headers show

Commit Message

Dominique d'Humières Dec. 22, 2012, 10:51 a.m. UTC
The following patch allowed me to proceed for c,c++,lto,fortran,ada,objc,obj-c++
up to libada which has the same problem:


Dominique

Comments

Richard Sandiford Dec. 22, 2012, 11:13 a.m. UTC | #1
dominiq@lps.ens.fr (Dominique Dhumieres) writes:
> The following patch allowed me to proceed for c,c++,lto,fortran,ada,objc,obj-c++
> up to libada which has the same problem:
>
> --- ../_clean/gcc/configure	2012-12-20 17:19:54.000000000 +0100
> +++ ../p_work/gcc/configure	2012-12-21 23:44:46.000000000 +0100
> @@ -10321,9 +10321,9 @@ $as_echo "#define HAVE_LANGINFO_CODESET 
>  
>  # We will need to find libiberty.h and ansidecl.h
>  saved_CFLAGS="$CFLAGS"
> -CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
> +CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
>  saved_CXXFLAGS="$CXXFLAGS"
> -CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
> +CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
>  for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
>  	strsignal strstr stpcpy strverscmp \
>  	errno snprintf vsnprintf vasprintf malloc realloc calloc \

Yeah, just came up with the same fix here (plain x86_64-linux-gnu,
but I don't have a gmp dev package installed and rely on --with-gmp).
Worked for me too.

Richard
diff mbox

Patch

--- ../_clean/gcc/configure	2012-12-20 17:19:54.000000000 +0100
+++ ../p_work/gcc/configure	2012-12-21 23:44:46.000000000 +0100
@@ -10321,9 +10321,9 @@  $as_echo "#define HAVE_LANGINFO_CODESET 
 
 # We will need to find libiberty.h and ansidecl.h
 saved_CFLAGS="$CFLAGS"
-CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
+CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
 saved_CXXFLAGS="$CXXFLAGS"
-CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
+CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
 	strsignal strstr stpcpy strverscmp \
 	errno snprintf vsnprintf vasprintf malloc realloc calloc \