From 7d236049a59fd6358796848556dd10fb83820f14 Mon Sep 17 00:00:00 2001 From: Martin Beaudoin Date: Wed, 19 Aug 2015 17:40:10 -0400 Subject: [PATCH] ThirdParty: gcc 4.8.4 and gcc 4.9.2. We are fixing here a relatively old bug related to the compilation of gmp as an internal package of gcc. Basically, gcc is using an oldish version of gmp. This fix is correcting a well-known configuration error when gmp is compiled as an internal package to gcc. The bug do manifest itself under Centos 6.2. --- ThirdParty/rpmBuild/SPECS/gcc-4.8.4.spec | 11 +++++++++++ ThirdParty/rpmBuild/SPECS/gcc-4.9.2.spec | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/ThirdParty/rpmBuild/SPECS/gcc-4.8.4.spec b/ThirdParty/rpmBuild/SPECS/gcc-4.8.4.spec index 69ec69c71..8acb8c111 100644 --- a/ThirdParty/rpmBuild/SPECS/gcc-4.8.4.spec +++ b/ThirdParty/rpmBuild/SPECS/gcc-4.8.4.spec @@ -97,6 +97,17 @@ Group: Development/Tools # Download prequisite libraries ./contrib/download_prerequisites + # Fixing an old bug related to gmp and m4 and gcc + # See https://gmplib.org/list-archives/gmp-bugs/2008-August/001114.html + # This bug will occur when compiling gmp as an internal gcc package. + # This bug will occur on Centos 6.2. and probably on other OSes as well + cp gmp/configure.in gmp/configure.in.orig + cp gmp/configure gmp/configure.orig + sed "s/m4-not-needed/m4/g" gmp/configure.in > gmp/configure.in.patched + sed "s/m4-not-needed/m4/g" gmp/configure > gmp/configure.patched + mv gmp/configure.in.patched gmp/configure.in + mv gmp/configure.patched gmp/configure + # Create working directory mkdir ./objBuildDir cd ./objBuildDir diff --git a/ThirdParty/rpmBuild/SPECS/gcc-4.9.2.spec b/ThirdParty/rpmBuild/SPECS/gcc-4.9.2.spec index e39054f17..d134a7d2b 100644 --- a/ThirdParty/rpmBuild/SPECS/gcc-4.9.2.spec +++ b/ThirdParty/rpmBuild/SPECS/gcc-4.9.2.spec @@ -97,6 +97,17 @@ Group: Development/Tools # Download prequisite libraries ./contrib/download_prerequisites + # Fixing an old bug related to gmp and m4 and gcc + # See https://gmplib.org/list-archives/gmp-bugs/2008-August/001114.html + # This bug will occur when compiling gmp as an internal gcc package. + # This bug will occur on Centos 6.2. and probably on other OSes as well + cp gmp/configure.in gmp/configure.in.orig + cp gmp/configure gmp/configure.orig + sed "s/m4-not-needed/m4/g" gmp/configure.in > gmp/configure.in.patched + sed "s/m4-not-needed/m4/g" gmp/configure > gmp/configure.patched + mv gmp/configure.in.patched gmp/configure.in + mv gmp/configure.patched gmp/configure + # Create working directory mkdir ./objBuildDir cd ./objBuildDir