diff options
Diffstat (limited to 'vcpkg/ports/openimageio/fix-static-ffmpeg.patch')
| -rw-r--r-- | vcpkg/ports/openimageio/fix-static-ffmpeg.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vcpkg/ports/openimageio/fix-static-ffmpeg.patch b/vcpkg/ports/openimageio/fix-static-ffmpeg.patch new file mode 100644 index 0000000..68b69ae --- /dev/null +++ b/vcpkg/ports/openimageio/fix-static-ffmpeg.patch @@ -0,0 +1,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) |