Fail client experimental lib building at compile-time if there are undefined symbols on Linux

This commit is contained in:
Sanduuz committed 2026-06-12 20:31:42 +03:00
1 parent 8b59f23bca
commit 3bea6eaea7
1 file changed
+6
+6
View File
@@ -667,6 +667,12 @@ add_library(pm3rrg_rdv4 SHARED
target_compile_definitions(pm3rrg_rdv4 PRIVATE LIBPM3)
if (UNIX AND NOT APPLE)
# Fail the build if a client source file is missing from TARGET_SOURCES.
# Otherwise Linux may defer unresolved shared-library symbols until import.
set_property(TARGET pm3rrg_rdv4 APPEND_STRING PROPERTY LINK_FLAGS " -Wl,--no-undefined")
endif()
target_compile_options(pm3rrg_rdv4 PUBLIC -Wall -Werror -O3)
if (EMBED_READLINE)
if (NOT SKIPREADLINE EQUAL 1)