git: 29962a76e8c8 - main - lang/ldc: fix runtime on powerpc*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Nov 2022 19:38:08 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=29962a76e8c81d093592494df173f2f246e29402 commit 29962a76e8c81d093592494df173f2f246e29402 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-11-22 19:33:16 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-11-22 19:38:03 +0000 lang/ldc: fix runtime on powerpc* Fixes build of x11-toolkits/gtkd: ld: error: undefined symbol: __tls_get_addr_opt >>> referenced by sections_elf_shared.d >>> sections_elf_shared.o:(_D2rt19sections_elf_shared3DSO8tlsRangeMxFNbNiZAv) in archive /usr/local/lib/libdruntime-ldc.a >>> referenced by sections_elf_shared.d >>> sections_elf_shared.o:(_D2rt19sections_elf_shared11getTLSRangeFNbNimmmZAv) in archive /usr/local/lib/libdruntime-ldc.a >>> referenced by sections_elf_shared.d >>> sections_elf_shared.o:(_d_dso_registry) in archive /usr/local/lib/libdruntime-ldc.a >>> referenced 1 more times --- lang/ldc/Makefile | 2 +- ...h-runtime_druntime_src_rt_sections__elf__shared.d | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/lang/ldc/Makefile b/lang/ldc/Makefile index 365ac3ffb781..a107d855b8a3 100644 --- a/lang/ldc/Makefile +++ b/lang/ldc/Makefile @@ -1,7 +1,7 @@ PORTNAME= ldc PORTVERSION= 1.30.0 DISTVERSIONSUFFIX= -src -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang MASTER_SITES= https://github.com/ldc-developers/${PORTNAME}/releases/download/v${DISTVERSION}/ diff --git a/lang/ldc/files/patch-runtime_druntime_src_rt_sections__elf__shared.d b/lang/ldc/files/patch-runtime_druntime_src_rt_sections__elf__shared.d new file mode 100644 index 000000000000..d70a8e4a14cd --- /dev/null +++ b/lang/ldc/files/patch-runtime_druntime_src_rt_sections__elf__shared.d @@ -0,0 +1,20 @@ +--- runtime/druntime/src/rt/sections_elf_shared.d.orig 2022-11-21 16:37:34 UTC ++++ runtime/druntime/src/rt/sections_elf_shared.d +@@ -1150,17 +1150,6 @@ else + + version (LDC) + { +- version (PPC) +- { +- extern(C) void* __tls_get_addr_opt(tls_index* ti) nothrow @nogc; +- alias __tls_get_addr = __tls_get_addr_opt; +- } +- else version (PPC64) +- { +- extern(C) void* __tls_get_addr_opt(tls_index* ti) nothrow @nogc; +- alias __tls_get_addr = __tls_get_addr_opt; +- } +- else + extern(C) void* __tls_get_addr(tls_index* ti) nothrow @nogc; + } + else