Browse Source

CMake: don't re-export symbols from libharfbuzz.a

To match 84a69e1689099d81926fe165de9310ef79069585 (fix for #1391)
rdb 3 years ago
parent
commit
d801e00c0f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      panda/src/text/CMakeLists.txt

+ 4 - 0
panda/src/text/CMakeLists.txt

@@ -45,6 +45,10 @@ target_interrogate(p3text ALL)
 
 if(HAVE_HARFBUZZ)
   target_compile_definitions(p3text PRIVATE HAVE_HARFBUZZ)
+
+  if(CMAKE_CXX_COMPILER_ID MATCHES "^(GNU|Clang)$")
+    target_link_options(p3text PRIVATE "LINKER:--exclude-libs,libharfbuzz.a")
+  endif()
 endif()
 
 if(NOT BUILD_METALIBS)