head 1.12; access; symbols pkgsrc-2026Q3:1.12.0.4 pkgsrc-2026Q3-base:1.12 pkgsrc-2026Q2:1.12.0.2 pkgsrc-2026Q2-base:1.12 pkgsrc-2026Q1:1.11.0.8 pkgsrc-2026Q1-base:1.11 pkgsrc-2025Q4:1.11.0.6 pkgsrc-2025Q4-base:1.11 pkgsrc-2025Q3:1.11.0.4 pkgsrc-2025Q3-base:1.11 pkgsrc-2025Q2:1.11.0.2 pkgsrc-2025Q2-base:1.11 pkgsrc-2025Q1:1.9.0.6 pkgsrc-2025Q1-base:1.9 pkgsrc-2024Q4:1.9.0.4 pkgsrc-2024Q4-base:1.9 pkgsrc-2024Q3:1.9.0.2 pkgsrc-2024Q3-base:1.9 pkgsrc-2024Q2:1.7.0.2 pkgsrc-2024Q2-base:1.7 pkgsrc-2024Q1:1.6.0.4 pkgsrc-2024Q1-base:1.6 pkgsrc-2023Q4:1.6.0.2 pkgsrc-2023Q4-base:1.6 pkgsrc-2023Q3:1.5.0.6 pkgsrc-2023Q3-base:1.5 pkgsrc-2023Q2:1.5.0.4 pkgsrc-2023Q2-base:1.5 pkgsrc-2023Q1:1.5.0.2 pkgsrc-2023Q1-base:1.5 pkgsrc-2022Q4:1.2.0.2 pkgsrc-2022Q4-base:1.2; locks; strict; comment @# @; 1.12 date 2026.03.25.22.56.27; author wiz; state Exp; branches; next 1.11; commitid 29BuEbar9GuKtpzG; 1.11 date 2025.05.10.17.37.07; author tnn; state Exp; branches; next 1.10; commitid EMSJEHknrOl1YnUF; 1.10 date 2025.05.09.05.51.25; author adam; state Exp; branches; next 1.9; commitid gd9WBpmGiiwY5cUF; 1.9 date 2024.07.24.09.23.11; author jperkin; state Exp; branches; next 1.8; commitid i3H39inQ1PMCy4jF; 1.8 date 2024.07.06.15.45.07; author adam; state Exp; branches; next 1.7; commitid 9KpFpYTi5zNpfNgF; 1.7 date 2024.04.22.07.05.15; author adam; state Exp; branches; next 1.6; commitid ivj1hEdTegoCM67F; 1.6 date 2023.12.01.18.27.22; author jperkin; state Exp; branches; next 1.5; commitid sGEPcekyULlL8NOE; 1.5 date 2023.01.12.22.47.25; author wiz; state Exp; branches; next 1.4; commitid QAMJrKqV2v3xYi9E; 1.4 date 2023.01.12.09.01.52; author wiz; state Exp; branches; next 1.3; commitid BSy5tegOa5Qope9E; 1.3 date 2023.01.12.08.52.49; author wiz; state Exp; branches; next 1.2; commitid yizi7QuVZiM8me9E; 1.2 date 2022.11.30.19.55.00; author adam; state Exp; branches; next 1.1; commitid FkUfhZM3QnG4pL3E; 1.1 date 2022.11.14.18.45.20; author adam; state Exp; branches; next ; commitid v0LNVJgCe1X9xH1E; desc @@ 1.12 log @llvm and friends: update to to 20.1.8 Based on the wip packages and help from adam@@ @ text @$NetBSD: patch-src_CMakeLists.txt,v 1.11 2025/05/10 17:37:07 tnn Exp $ - Fix building assembler files. https://github.com/llvm/llvm-project/issues/59978 - It checks for -nostdlib++ on the C++ compiler (g++) but then tries to pass it to the C compiler (gcc). This does not work: gcc: error: unrecognized command-line option '-nostdlib++' So use the C++ compiler for linking. --- src/CMakeLists.txt.orig 2025-07-08 23:06:32.000000000 +0000 +++ src/CMakeLists.txt @@@@ -1,4 +1,5 @@@@ # Get sources +enable_language(ASM) set(LIBUNWIND_CXX_SOURCES libunwind.cpp @@@@ -180,7 +181,7 @@@@ set_target_properties(unwind_shared PROPERTIES EXCLUDE_FROM_ALL "$,FALSE,TRUE>" LINK_FLAGS "${LIBUNWIND_LINK_FLAGS}" - LINKER_LANGUAGE C + LINKER_LANGUAGE CXX OUTPUT_NAME "${LIBUNWIND_SHARED_OUTPUT_NAME}" VERSION "${LIBUNWIND_LIBRARY_VERSION}" SOVERSION "1" @ 1.11 log @libunwind: fix update fallout observed on SmartOS and Linux @ text @d1 1 a1 1 $NetBSD: patch-src_CMakeLists.txt,v 1.10 2025/05/09 05:51:25 adam Exp $ d11 1 a11 1 --- src/CMakeLists.txt.orig 2025-01-14 09:41:02.000000000 +0000 d19 9 a27 9 @@@@ -168,7 +169,7 @@@@ if (LIBUNWIND_ENABLE_SHARED) set_target_properties(unwind_shared PROPERTIES LINK_FLAGS "${LIBUNWIND_LINK_FLAGS}" - LINKER_LANGUAGE C + LINKER_LANGUAGE CXX OUTPUT_NAME "${LIBUNWIND_SHARED_OUTPUT_NAME}" VERSION "1.0" SOVERSION "1" @ 1.10 log @llvm: updated to 19.1.7 19.1.7 https://releases.llvm.org/19.1.0/docs/ReleaseNotes.html @ text @d1 1 a1 1 $NetBSD: patch-src_CMakeLists.txt,v 1.5 2023/01/12 22:47:25 wiz Exp $ d3 2 a4 2 Fix building assembler files. https://github.com/llvm/llvm-project/issues/59978 d6 6 a11 1 --- src/CMakeLists.txt.orig 2023-01-12 07:12:30.000000000 +0000 d19 9 @ 1.9 log @libunwind: Restore yet another deleted patch. @ text @d1 1 a1 1 $NetBSD: patch-src_CMakeLists.txt,v 1.8 2024/07/06 15:45:07 adam Exp $ d6 1 a6 3 Use correct flags to link. --- src/CMakeLists.txt.orig 2024-06-15 17:21:32.000000000 +0000 a13 18 @@@@ -168,7 +169,7 @@@@ if (LIBUNWIND_ENABLE_SHARED) set_target_properties(unwind_shared PROPERTIES LINK_FLAGS "${LIBUNWIND_LINK_FLAGS}" - LINKER_LANGUAGE C + LINKER_LANGUAGE CXX OUTPUT_NAME "${LIBUNWIND_SHARED_OUTPUT_NAME}" VERSION "1.0" SOVERSION "1" @@@@ -214,7 +215,7 @@@@ if (LIBUNWIND_ENABLE_STATIC) set_target_properties(unwind_static PROPERTIES LINK_FLAGS "${LIBUNWIND_LINK_FLAGS}" - LINKER_LANGUAGE C + LINKER_LANGUAGE CXX OUTPUT_NAME "${LIBUNWIND_STATIC_OUTPUT_NAME}" ) @ 1.8 log @llvm: updated to 18.1.8 https://releases.llvm.org @ text @d1 1 a1 1 $NetBSD: patch-src_CMakeLists.txt,v 1.5 2023/01/12 22:47:25 wiz Exp $ d6 3 a8 1 --- src/CMakeLists.txt.orig 2023-01-12 07:12:30.000000000 +0000 d16 18 @ 1.7 log @libunwind compiler-rt libcxx libcxxabi: updated to 17.0.6 17.0.6 https://releases.llvm.org/17.0.1/projects/libcxx/docs/ReleaseNotes/17.html @ text @@ 1.6 log @libunwind: Use correct flags to link. The configure script only tests if CXX supports various flags, but then uses CC to compile and link various objects. While compiling only issues warnings about incorrect flags, attempting to link with the wrong front end causes fatal errors. Specifically fixes trying to link with gcc using "-nostdlib++". @ text @d6 1 a6 3 Use correct flags to link. --- src/CMakeLists.txt.orig 2023-06-10 22:58:16.000000000 +0000 a13 34 @@@@ -31,15 +32,6 @@@@ set(LIBUNWIND_ASM_SOURCES UnwindRegistersSave.S ) -# See add_asm_sources() in compiler-rt for explanation of this workaround. -# CMake doesn't work correctly with assembly on AIX. Workaround by compiling -# as C files as well. -if((APPLE AND CMAKE_VERSION VERSION_LESS 3.19) OR - (MINGW AND CMAKE_VERSION VERSION_LESS 3.17) OR - (${CMAKE_SYSTEM_NAME} MATCHES "AIX")) - set_source_files_properties(${LIBUNWIND_ASM_SOURCES} PROPERTIES LANGUAGE C) -endif() - set(LIBUNWIND_HEADERS AddressSpace.hpp assembly.h @@@@ -160,7 +152,7 @@@@ if (LIBUNWIND_ENABLE_SHARED) set_target_properties(unwind_shared PROPERTIES LINK_FLAGS "${LIBUNWIND_LINK_FLAGS}" - LINKER_LANGUAGE C + LINKER_LANGUAGE CXX OUTPUT_NAME "${LIBUNWIND_SHARED_OUTPUT_NAME}" VERSION "1.0" SOVERSION "1" @@@@ -200,7 +192,7 @@@@ if (LIBUNWIND_ENABLE_STATIC) set_target_properties(unwind_static PROPERTIES LINK_FLAGS "${LIBUNWIND_LINK_FLAGS}" - LINKER_LANGUAGE C + LINKER_LANGUAGE CXX OUTPUT_NAME "${LIBUNWIND_STATIC_OUTPUT_NAME}" ) @ 1.5 log @libunwind: update patch after comments from CMake developer add new bug report URL @ text @d1 1 a1 1 $NetBSD: patch-src_CMakeLists.txt,v 1.4 2023/01/12 09:01:52 wiz Exp $ d6 3 a8 1 --- src/CMakeLists.txt.orig 2023-01-12 07:12:30.000000000 +0000 d32 18 @ 1.4 log @libunwind: add upstream bug report URL @ text @d1 1 a1 1 $NetBSD: patch-src_CMakeLists.txt,v 1.3 2023/01/12 08:52:49 wiz Exp $ d4 1 a4 1 https://gitlab.kitware.com/cmake/cmake/-/issues/24308 d6 1 a6 1 --- src/CMakeLists.txt.orig 2022-11-29 10:05:58.000000000 +0000 d8 13 a20 4 @@@@ -34,11 +34,7 @@@@ set(LIBUNWIND_ASM_SOURCES # See add_asm_sources() in compiler-rt for explanation of this workaround. # CMake doesn't work correctly with assembly on AIX. Workaround by compiling # as C files as well. d26 1 a26 2 +set_source_files_properties(${LIBUNWIND_ASM_SOURCES} PROPERTIES LANGUAGE C) d29 1 @ 1.3 log @libunwind: fix building of assembler files If they are not tagged as C sources, they are not built at all on NetBSD. Extend macOS workaround for all platforms. @ text @d1 1 a1 1 $NetBSD: patch-src_CMakeLists.txt,v 1.2 2022/11/30 19:55:00 adam Exp $ d4 1 @ 1.2 log @llvm: updated to 15.0.6 15.0.6 Bug fixes @ text @d1 1 a1 1 $NetBSD: patch-src_CMakeLists.txt,v 1.1 2022/11/14 18:45:20 adam Exp $ d3 1 a3 1 Fix build on Darwin. d5 1 a5 1 --- src/CMakeLists.txt.orig 2022-11-09 10:05:30.000000000 +0000 d7 1 a7 1 @@@@ -34,7 +34,7 @@@@ set(LIBUNWIND_ASM_SOURCES d12 8 a19 4 +if((APPLE AND CMAKE_VERSION VERSION_LESS 3.26) OR (MINGW AND CMAKE_VERSION VERSION_LESS 3.17) OR (${CMAKE_SYSTEM_NAME} MATCHES "AIX")) set_source_files_properties(${LIBUNWIND_ASM_SOURCES} PROPERTIES LANGUAGE C) @ 1.1 log @libunwind: add patches @ text @d1 1 a1 1 $NetBSD$ d12 1 a12 1 +if((APPLE AND CMAKE_VERSION VERSION_LESS 3.25) OR @