summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-07-08 10:59:49 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2018-07-08 11:00:05 +0100
commit738995e4af3a935b410a8f16663feaf3c7e0332a (patch)
tree09ade5b87fae001ed0fbe92b6dd947a39dc77cc2 /sys-libs
parentapp-admin/sudo: Removed old. (diff)
downloadgentoo-738995e4af3a935b410a8f16663feaf3c7e0332a.tar.gz
gentoo-738995e4af3a935b410a8f16663feaf3c7e0332a.tar.bz2
gentoo-738995e4af3a935b410a8f16663feaf3c7e0332a.zip
sys-libs/libunwind: fix build with -fuse-ld=gold, bug #659732
Backport upstream patch to drop protected atrribute. Reported-by: jorgicio Closes: https://bugs.gentoo.org/659732 Package-Manager: Portage-2.3.41, Repoman-2.3.9
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/libunwind/files/libunwind-1.2.1-no-PROTECTED.patch14
-rw-r--r--sys-libs/libunwind/libunwind-1.2.1-r1.ebuild1
2 files changed, 15 insertions, 0 deletions
diff --git a/sys-libs/libunwind/files/libunwind-1.2.1-no-PROTECTED.patch b/sys-libs/libunwind/files/libunwind-1.2.1-no-PROTECTED.patch
new file mode 100644
index 000000000000..6b12d9712ff8
--- /dev/null
+++ b/sys-libs/libunwind/files/libunwind-1.2.1-no-PROTECTED.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/659732
+https://github.com/libunwind/libunwind/issues/58
+
+From a1437a3d27924e17d00021df3cc659bd998e8580 Mon Sep 17 00:00:00 2001
+From: Dave Watson <davejwatson@fb.com>
+Date: Thu, 28 Dec 2017 08:26:42 -0800
+Subject: [PATCH] Remove PROTECTED visibility
+
+This only works on bfd ld, not lld or gold.
+--- a/include/compiler.h
++++ b/include/compiler.h
+@@ -43 +43 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
+-# define PROTECTED __attribute__((visibility ("protected")))
++# define PROTECTED
diff --git a/sys-libs/libunwind/libunwind-1.2.1-r1.ebuild b/sys-libs/libunwind/libunwind-1.2.1-r1.ebuild
index a4690fc050ec..8ab6cd4d1120 100644
--- a/sys-libs/libunwind/libunwind-1.2.1-r1.ebuild
+++ b/sys-libs/libunwind/libunwind-1.2.1-r1.ebuild
@@ -49,6 +49,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-1.2-ia64-missing.patch
"${FILESDIR}"/${PN}-1.2.1-fix_version_macros.patch
"${FILESDIR}"/${PN}-1.2.1-only-include-execinfo_h-if-avaliable.patch
+ "${FILESDIR}"/${PN}-1.2.1-no-PROTECTED.patch #659732
)
src_prepare() {