[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [issues] Eglibc issue on PPC?



On Sun, Jul 5, 2009 at 1:21 PM, Jim Gifford<maillist@xxxxxxxxx> wrote:
> Just for reference my toolchain guy found the issue. It was related to GCC.
> Here's the information and the fix.
>
> When gcc was configured it was told to find MPFR, GMP, PPL, and CLooG-PPL in
> /tools. However, when compiling gcc uses these same values for building
> native helper programs that run on the host. The following sed will change
> those values to look in cross-tools for the native programs only:
>
> cp Makefile{,.orig}
> sed "/^HOST_\(GMP\|PPL\|CLOOG\)\(LIBS\|INC\)/s:/tools:/cross-tools:g" \
>
> http://cross-lfs.org/view/svn/ppc/temp-system/gcc.html
>     Makefile.orig > Makefile

I've never had to modify the gcc Makefile after configure, to do so
indicates you are still configuring gcc incorrectly.

Why not configure with --with-gmp=/cross-tools?

Cheers,
Carlos.