[Buildroot] [PATCH] gcc: apply PowerPC patch when needed

Gustavo Zacarias gustavo at zacarias.com.ar
Fri Jul 5 12:57:14 UTC 2013

On 07/05/2013 05:40 AM, Thomas Petazzoni wrote:

> When converting gcc to the package infrastructure, a specific thing
> for PowerPC was forgotten: applying the conditional patch
> powerpc-link-with-math-lib.patch.conditional. This breaks the build of
> some PowerPC toolchains, with failures such as:
> <http://jenkins.free-electrons.com/job/buildroot/./config=qemu_ppc_virtex_ml507_defconfig/ws/output/host/usr/lib/gcc/powerpc-buildroot-linux-uclibc/4.7.3/../../../../powerpc-buildroot-linux-uclibc/lib/libgcc_s.so.1>: undefined reference to `copysignl'
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>

Acked-by: Gustavo Zacarias <gustavo at zacarias.com.ar>
Tested-by: Gustavo Zacarias <gustavo at zacarias.com.ar>

> Anyone knows why we have this conditional patch? Can't it be made a
> normal patch, with the appropriate modifications? Why isn't that
> upstream since all those years?

http://gcc.gnu.org/ml/gcc-patches/2008-10/msg00292.html for the
A sample failing config without the patch is
qemu_ppc_virtex_ml507_defconfig (a powerpc 440 core, soft float).

More information about the buildroot mailing list