From 31d84f67f74b31b479409cfa446b14ac67bb3707 Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Mon, 13 Apr 2015 22:41:20 -0700 Subject: libunwind: fix build with aarch64 Referred to RP's fix for x86 and x86-64: 34d517a5626ce2465f776367349bd9e66bf8ed1f libunwind: Build with gold to avoid build failures Fixed: aarch64-poky-linux/4.9.2/ld: copy reloc against protected `_Uaarch64_local_addr_space' is invalid aarch64-poky-linux/4.9.2/ld: failed to set dynamic section sizes: Bad value aarch64-poky-linux/4.9.2/ld: copy reloc against protected `_Uaarch64_local_addr_space' is invalid aarch64-poky-linux/4.9.2/ld: failed to set dynamic section sizes: Bad value | collect2: error: ld returned 1 exit status Signed-off-by: Robert Yang --- meta/recipes-support/libunwind/libunwind.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/recipes-support') diff --git a/meta/recipes-support/libunwind/libunwind.inc b/meta/recipes-support/libunwind/libunwind.inc index 74afba182f..56905c27b9 100644 --- a/meta/recipes-support/libunwind/libunwind.inc +++ b/meta/recipes-support/libunwind/libunwind.inc @@ -26,6 +26,8 @@ LIBATOMICS ?= "" LDFLAGS_append_x86 = " -fuse-ld=gold" LDFLAGS_append_x86-64 = " -fuse-ld=gold" +LDFLAGS_append_aarch64 = " -fuse-ld=gold" + DEPENDS += "${DEPLIBATOMICS}" DEPLIBATOMICS_armv5 = "libatomics-ops" DEPLIBATOMICS_armv4 = "libatomics-ops" -- cgit v1.2.3