diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/openimageio/fix-static-ffmpeg.patch | |
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) |