summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-08-27 07:37:49 +0800
committerErik Kundiman <erik@megapahit.org>2023-08-27 07:37:49 +0800
commite7e2fa632a11da614e7afaaf766673ac41c12ba9 (patch)
tree1cc42d85180cceb08db6ef7660d1a55e9fdaff94 /indra
parent8e70361fc38b5a735f95459c1e717d41e639c708 (diff)
Hidden visibility only when building static libs
Otherwise it would fail to link SLPlugin.
Diffstat (limited to 'indra')
-rw-r--r--indra/cmake/00-Common.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/cmake/00-Common.cmake b/indra/cmake/00-Common.cmake
index f81bdbf311..ebb3a73a62 100644
--- a/indra/cmake/00-Common.cmake
+++ b/indra/cmake/00-Common.cmake
@@ -138,9 +138,12 @@ if (LINUX OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
-pthread
-Wno-parentheses
-Wno-deprecated
- -fvisibility=hidden
)
+ if (NOT BUILD_SHARED_LIBS)
+ add_compile_options(-fvisibility=hidden)
+ endif (NOT BUILD_SHARED_LIBS)
+
if (ADDRESS_SIZE EQUAL 32)
add_compile_options(-march=pentium4)
endif (ADDRESS_SIZE EQUAL 32)