aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/hiredis/support-static.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/hiredis/support-static.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/hiredis/support-static.patch')
-rw-r--r--vcpkg/ports/hiredis/support-static.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/hiredis/support-static.patch b/vcpkg/ports/hiredis/support-static.patch
new file mode 100644
index 0000000..e9f0bb2
--- /dev/null
+++ b/vcpkg/ports/hiredis/support-static.patch
@@ -0,0 +1,22 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b7d6ee8..8cf6c4d 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -45,6 +45,8 @@ ENDIF()
+
+ ADD_LIBRARY(hiredis ${hiredis_sources})
+ ADD_LIBRARY(hiredis::hiredis ALIAS hiredis)
++ADD_LIBRARY(hiredis_static STATIC ${hiredis_sources})
++SET_TARGET_PROPERTIES(hiredis_static PROPERTIES EXCLUDE_FROM_ALL TRUE)
+ set(hiredis_export_name hiredis CACHE STRING "Name of the exported target")
+ set_target_properties(hiredis PROPERTIES EXPORT_NAME ${hiredis_export_name})
+
+@@ -156,6 +158,8 @@ IF(ENABLE_SSL)
+ ssl.c)
+ ADD_LIBRARY(hiredis_ssl ${hiredis_ssl_sources})
+ ADD_LIBRARY(hiredis::hiredis_ssl ALIAS hiredis_ssl)
++ ADD_LIBRARY(hiredis_ssl_static STATIC ${hiredis_ssl_sources})
++ SET_TARGET_PROPERTIES(hiredis_ssl_static PROPERTIES EXCLUDE_FROM_ALL TRUE)
+
+ IF (APPLE AND BUILD_SHARED_LIBS)
+ SET_PROPERTY(TARGET hiredis_ssl PROPERTY LINK_FLAGS "-Wl,-undefined -Wl,dynamic_lookup")