head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 2026.11.01.20.34.54; author wiz; state Exp; branches; next 1.1; commitid xO6o39vc5zCYAN1H; 1.1 date 2026.11.01.20.19.26; author wiz; state Exp; branches; next ; commitid 9nGUj1APufdrvN1H; desc @@ 1.2 log @py-nanobind: update patch after upstream suggestions @ text @$NetBSD: patch-cmake_nanobind-config.cmake,v 1.1 2026/11/01 20:19:26 wiz Exp $ NetBSD's x86_64 runtime linker does not support the TLSDESC thread-local storage ABI (R_X86_64_TLSDESC, relocation type 36). Limit the check to Linux systems. https://github.com/wjakob/nanobind/pull/1462 --- cmake/nanobind-config.cmake.orig 2026-09-29 09:19:48.000000000 +0000 +++ cmake/nanobind-config.cmake @@@@ -113,7 +113,7 @@@@ # Probe for the faster TLSDESC thread-local storage ABI (Linux/x86_64) # --------------------------------------------------------------------------- -if (NOT (MSVC OR WIN32 OR APPLE)) +if (CMAKE_SYSTEM_NAME STREQUAL "Linux") include(CheckCXXCompilerFlag) check_cxx_compiler_flag(-mtls-dialect=gnu2 NB_HAS_MTLS_GNU2) endif() @ 1.1 log @py-nanobind: fix (at least on) on NetBSD NetBSD's x86_64 runtime linker does not support the TLSDESC thread-local storage ABI (R_X86_64_TLSDESC, relocation type 36). Limit the check to Linux systems. Submitted upstream. Fixes py-pikepdf (and probably other py-nanobind dependencies). Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ d16 1 a16 1 +if (LINUX) @