diff options
| author | Ting Liu <ting.liu@freescale.com> | 2015-01-15 12:03:50 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-11 17:40:05 +0000 |
| commit | 72a43adb4d764ba6fb4f86ffdf46c651e4657520 (patch) | |
| tree | 94feed6c14e4ab40980278636da04561c98ab4e9 | |
| parent | 64090cf0d881023ed8908f3feff2a6039d183226 (diff) | |
| download | poky-72a43adb4d764ba6fb4f86ffdf46c651e4657520.tar.gz | |
libunwind: Fix test case link failure on PowerPC with Altivec
(From OE-Core rev: 519c42d6c32c38d20411afbbd879850d4e6ae3b0)
Signed-off-by: Ting Liu <ting.liu@freescale.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-support/libunwind/libunwind-1.1/Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch | 28 | ||||
| -rw-r--r-- | meta/recipes-support/libunwind/libunwind_1.1.bb | 4 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-support/libunwind/libunwind-1.1/Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch b/meta/recipes-support/libunwind/libunwind-1.1/Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch new file mode 100644 index 0000000000..dc0f5c1b47 --- /dev/null +++ b/meta/recipes-support/libunwind/libunwind-1.1/Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | Fix test case link failure on PowerPC systems with Altivec | ||
| 2 | |||
| 3 | Upstream-Status:backport | ||
| 4 | |||
| 5 | On systems where the system compiler supports Altivec by default, | ||
| 6 | the libunwind Makefile will attempt to build an extra test case | ||
| 7 | ppc64-test-altivec. Unfortunately, the link step will fail since | ||
| 8 | the Makefile does not actually link against the libunwind library. | ||
| 9 | |||
| 10 | Fixed by adding the appropriate LDADD macro. | ||
| 11 | |||
| 12 | Signed-off-by: Ulrich Weigand <address@hidden> | ||
| 13 | --- | ||
| 14 | tests/Makefile.am | 1 + | ||
| 15 | 1 file changed, 1 insertion(+) | ||
| 16 | |||
| 17 | diff --git a/tests/Makefile.am b/tests/Makefile.am | ||
| 18 | index 0e30536..9c76628 100644 | ||
| 19 | --- a/tests/Makefile.am | ||
| 20 | +++ b/tests/Makefile.am | ||
| 21 | @@ -201,3 +201,4 @@ Lia64_test_rbs_LDADD = $(LIBUNWIND_local) | ||
| 22 | Lia64_test_readonly_LDADD = $(LIBUNWIND_local) | ||
| 23 | ia64_test_dyn1_LDADD = $(LIBUNWIND) | ||
| 24 | ia64_test_sig_LDADD = $(LIBUNWIND) | ||
| 25 | +ppc64_test_altivec_LDADD = $(LIBUNWIND) | ||
| 26 | -- | ||
| 27 | 1.8.5 | ||
| 28 | |||
diff --git a/meta/recipes-support/libunwind/libunwind_1.1.bb b/meta/recipes-support/libunwind/libunwind_1.1.bb index bc38e36440..20db132688 100644 --- a/meta/recipes-support/libunwind/libunwind_1.1.bb +++ b/meta/recipes-support/libunwind/libunwind_1.1.bb | |||
| @@ -1,4 +1,8 @@ | |||
| 1 | require libunwind.inc | 1 | require libunwind.inc |
| 2 | 2 | ||
| 3 | SRC_URI += "\ | ||
| 4 | file://Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch \ | ||
| 5 | " | ||
| 6 | |||
| 3 | SRC_URI[md5sum] = "fb4ea2f6fbbe45bf032cd36e586883ce" | 7 | SRC_URI[md5sum] = "fb4ea2f6fbbe45bf032cd36e586883ce" |
| 4 | SRC_URI[sha256sum] = "9dfe0fcae2a866de9d3942c66995e4b460230446887dbdab302d41a8aee8d09a" | 8 | SRC_URI[sha256sum] = "9dfe0fcae2a866de9d3942c66995e4b460230446887dbdab302d41a8aee8d09a" |
