File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,9 @@ CHECK_FUNCTION_EXISTS(mremap HAVE_MREMAP)
7777# Assembly
7878#AM_PROG_AS
7979
80+ # Resolve all external symbols when linking SOs.
81+ OPTION (ENABLE_SO_UNRESOLVED_SYMBOL_CHECKS "Enable resolution of external symbols when linking SOs" yes )
82+
8083# Internationalization
8184SET (GETTEXT_PACKAGE "libvisual-plugins-${LV_PLUGINS_VERSION_SUFFIX} " )
8285OPTION (ENABLE_NLS "Enable internationalization" yes )
Original file line number Diff line number Diff line change @@ -52,9 +52,12 @@ FUNCTION(LV_BUILD_PLUGIN PLUGIN_NAME PLUGIN_TYPE)
5252 ${PARSE_ARGS_LINK_OPTIONS}
5353 )
5454
55- SET_TARGET_PROPERTIES (${SO_NAME} PROPERTIES
56- LINK_FLAGS -Wl,--unresolved-symbols,ignore -in-shared-libs
57- )
55+ IF (ENABLE_SO_UNRESOLVED_SYMBOL_CHECKS)
56+ TARGET_LINK_OPTIONS (${SO_NAME}
57+ PRIVATE
58+ -Wl,--unresolved-symbols,ignore -in-shared-libs
59+ )
60+ ENDIF ()
5861
5962 TARGET_LINK_LIBRARIES (${SO_NAME}
6063 PRIVATE
You can’t perform that action at this time.
0 commit comments