From c3de8cc5c91accfd610869640878e3143eee2087 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 17 Aug 2017 09:31:03 -0400 Subject: [PATCH 1/5] devel/libunwind: set LLD_UNSAFE libunwind.so has symbols with ELF protected visibility which various test applications attempt to preempt. Both GNU gold and LLVM's lld fail to link this case, with errors like lld: /usr/bin/ld: error: cannot preempt symbol: _ULx86_64_init_local >>> defined in ../src/.libs/libunwind.so >>> referenced by Lperf-trace.c >>> Lperf-trace.o:(main) gold: /usr/local/bin/ld.gold: error: Gperf-simple.o: cannot make copy relocation for protected symbol '_Ux86_64_local_addr_space', defined in ../src/.libs/libunwind-x86_64.so PR: 219524 --- devel/libunwind/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/devel/libunwind/Makefile b/devel/libunwind/Makefile index 2158e40de6e6..df1621949dfd 100644 --- a/devel/libunwind/Makefile +++ b/devel/libunwind/Makefile @@ -25,6 +25,7 @@ GNU_CONFIGURE= yes INSTALL_TARGET= install-strip USE_LDCONFIG= yes USES= libtool pathfix pkgconfig +LLD_UNSAFE= yes PLIST_SUB= ARCH=${ARCH:S|i386|x86|:S|amd64|x86_64|} -- 2.13.2