mirror of https://github.com/microsoft/vcpkg.git
20 lines
624 B
Diff
20 lines
624 B
Diff
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)
|