--- src/CMakeLists.txt.orig	2025-12-27 06:17:21 UTC
+++ src/CMakeLists.txt
@@ -56,7 +56,7 @@ endif ()
 # 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()
 
