aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libsrt/fix-static.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libsrt/fix-static.patch')
-rw-r--r--vcpkg/ports/libsrt/fix-static.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/libsrt/fix-static.patch b/vcpkg/ports/libsrt/fix-static.patch
new file mode 100644
index 0000000..6080c91
--- /dev/null
+++ b/vcpkg/ports/libsrt/fix-static.patch
@@ -0,0 +1,26 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 3f08b6a..88e636b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1026,20 +1026,7 @@ endif()
+
+ if (srt_libspec_static)
+ add_library(${TARGET_srt}_static STATIC ${OBJECT_LIB_SUPPORT} ${VIRTUAL_srt})
+-
+- # For Windows, leave the name to be "srt_static.lib".
+- # Windows generates two different library files:
+- # - a usual static library for static linkage
+- # - a shared library exposer, which allows pre-resolution and later dynamic
+- # linkage when running the executable
+- # Both having unfortunately the same names created by MSVC compiler.
+- # It's not the case of Cygwin/MINGW - they are named there libsrt.a and libsrt.dll.a
+- if (MICROSOFT)
+- # Keep _static suffix. By unknown reason, the name must still be set explicitly.
+- set_property(TARGET ${TARGET_srt}_static PROPERTY OUTPUT_NAME ${TARGET_srt}_static)
+- else()
+- set_property(TARGET ${TARGET_srt}_static PROPERTY OUTPUT_NAME ${TARGET_srt})
+- endif()
++ set_property(TARGET ${TARGET_srt}_static PROPERTY OUTPUT_NAME ${TARGET_srt})
+
+ list (APPEND INSTALL_TARGETS ${TARGET_srt}_static)
+ if (ENABLE_ENCRYPTION)