Wednesday, March 25, 2026

Re: [fix] devel/llvm/22: misc fixes

ok

On 24/03/26 22:43 +0000, Kurt Miller wrote:
> Fix for llvm-config --libs
> Add missing wantlib for execinfo
> Fix build on aarch64
>
> ok?
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/devel/llvm/22/Makefile,v
> diff -u -p -u -r1.2 Makefile
> --- Makefile 11 Mar 2026 07:59:25 -0000 1.2
> +++ Makefile 24 Mar 2026 16:04:24 -0000
> @@ -14,6 +14,8 @@ SHARED_LIBS += LLVM 0.0 \
> ec++abi 0.0 \
> lldb 0.0
>
> +WANTLIB-lldb += execinfo
> +
> # Apache License v2.0 with LLVM Exceptions
> PERMIT_PACKAGE = Yes
>
> Index: patches/patch-libunwind_src_Registers_hpp
> ===================================================================
> RCS file: patches/patch-libunwind_src_Registers_hpp
> diff -N patches/patch-libunwind_src_Registers_hpp
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-libunwind_src_Registers_hpp 24 Mar 2026 16:04:24 -0000
> @@ -0,0 +1,19 @@
> +HAVE_SYS_AUXV_H check should be changed to HAVE_GETAUXVAL and
> +HAVE_ELF_AUX_INFO. For now this works.
> +
> +Index: libunwind/src/Registers.hpp
> +--- libunwind/src/Registers.hpp.orig
> ++++ libunwind/src/Registers.hpp
> +@@ -1944,7 +1944,12 @@ class _LIBUNWIND_HIDDEN Registers_arm64 { (private)
> + static bool checkHasSME() {
> + #if defined(HAVE_SYS_AUXV_H)
> + constexpr int hwcap2_sme = (1 << 23);
> ++#if defined(__OpenBSD__)
> ++ unsigned long hwcap2 = 0;
> ++ elf_aux_info(AT_HWCAP2, &hwcap2, sizeof(hwcap2));
> ++#else
> + unsigned long hwcap2 = getauxval(AT_HWCAP2);
> ++

No comments:

Post a Comment