--- src/CMakeLists.txt.orig	2025-12-12 18:24:17 UTC
+++ src/CMakeLists.txt
@@ -35,7 +35,7 @@ target_link_libraries(KF5Crash PRIVATE Qt${QT_MAJOR_VE
 # in libc.so.7 -- it is in crt1.o, and so not available to shared
 # libraries. We just drop the normal no-undefined flag for library building
 # here, on the assumption that Linux CI will catch any *actual* undefineds.
-if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
+if (CMAKE_SYSTEM_NAME MATCHES "MidnightBSD")
     string(REPLACE "-Wl,--no-undefined" "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
 endif ()
 
