From: Thomas Petazzoni Date: Fri, 5 Jul 2013 08:40:52 +0000 (+0200) Subject: gcc: apply PowerPC patch when needed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=197006a41c1a0450bf6350d5742e186b5b0c69de;p=buildroot.git gcc: apply PowerPC patch when needed 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: : undefined reference to `copysignl' Signed-off-by: Thomas Petazzoni Acked-by: Gustavo Zacarias Tested-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk index 790762da72..968354b418 100644 --- a/package/gcc/gcc.mk +++ b/package/gcc/gcc.mk @@ -38,8 +38,17 @@ endef # Apply patches # +ifeq ($(ARCH)-$(BR2_GCC_SHARED_LIBGCC),powerpc-y) +ifneq ($(BR2_SOFT_FLOAT),) +define HOST_GCC_APPLY_POWERPC_PATCH + support/scripts/apply-patches.sh $(@D) package/gcc/$(GCC_VERSION) powerpc-link-with-math-lib.patch.conditional +endef +endif +endif + define HOST_GCC_APPLY_PATCHES support/scripts/apply-patches.sh $(@D) package/gcc/$(GCC_VERSION) \*.patch + $(HOST_GCC_APPLY_POWERPC_PATCH) endef #