summaryrefslogtreecommitdiff
path: root/indra/llplugin
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-07-29 20:58:27 +0800
committerErik Kundiman <erik@megapahit.org>2023-07-29 20:58:27 +0800
commit6e4f095baa8e33effe80b68ddf834a3b80f2bb67 (patch)
tree3d131c6056d3b6132226ff69da54c11800809a56 /indra/llplugin
parentd74367b40d3a2680bbc371b72e294419093e1d83 (diff)
Setting BUILD_SHARED_LIBS on is now possible
by removing cyclic dependencies, and allowing shlib undefined on SLPlugin alone.
Diffstat (limited to 'indra/llplugin')
-rw-r--r--indra/llplugin/slplugin/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llplugin/slplugin/CMakeLists.txt b/indra/llplugin/slplugin/CMakeLists.txt
index 0ea6495eac..f1a75ff97f 100644
--- a/indra/llplugin/slplugin/CMakeLists.txt
+++ b/indra/llplugin/slplugin/CMakeLists.txt
@@ -60,6 +60,11 @@ if (DARWIN)
)
endif (DARWIN)
+if (BUILD_SHARED_LIBS)
+ set_target_properties(SLPlugin PROPERTIES LINK_FLAGS_RELEASE
+ "${LINK_FLAGS_RELEASE} -Wl,--allow-shlib-undefined")
+endif ()
+
if (LL_TESTS)
ll_deploy_sharedlibs_command(SLPlugin)
endif (LL_TESTS)