blob: 68b69ae69a3bf55d57fcdf82335d1946f3a45cc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
diff --git a/src/python/CMakeLists.txt b/src/python/CMakeLists.txt
index 94b2a3e..0c7ab40 100644
--- a/src/python/CMakeLists.txt
+++ b/src/python/CMakeLists.txt
@@ -2,6 +2,14 @@
# SPDX-License-Identifier: Apache-2.0
# https://github.com/AcademySoftwareFoundation/OpenImageIO
+if(USE_FFMPEG AND UNIX AND NOT BUILD_SHARED_LIBS AND VCPKG_CRT_LINKAGE STREQUAL "dynamic")
+ include(CheckLinkerFlag)
+ check_linker_flag(C "LINKER:-Bsymbolic" supports_bsymbolic)
+ if(supports_bsymbolic)
+ add_link_options("LINKER:-Bsymbolic")
+ endif()
+endif()
+
add_subdirectory (stubs)
file (GLOB python_srcs *.cpp)
|