Skip to content

update patch for libzstd version 1.5.6 #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions patches/libzstd.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
build/cmake/lib/CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build/cmake/lib/CMakeLists.txt b/build/cmake/lib/CMakeLists.txt
index 088c8760..a63b5c81 100644
index 5d514cc..3205b2b 100644
--- a/build/cmake/lib/CMakeLists.txt
+++ b/build/cmake/lib/CMakeLists.txt
@@ -121,7 +121,7 @@ if (ZSTD_BUILD_SHARED)
@@ -118,6 +118,7 @@ endmacro ()

# Define directories containing the library's public headers
set(PUBLIC_INCLUDE_DIRS ${LIBRARY_DIR})
+set(CMAKE_RC_FLAGS "${CMAKE_RC_FLAGS} /I ${LIBRARY_DIR}")

# Split project to static and shared libraries build
set(library_targets)
@@ -204,7 +205,7 @@ if (ZSTD_BUILD_SHARED)
set_target_properties(
libzstd_shared
PROPERTIES
Expand All @@ -14,12 +19,12 @@ index 088c8760..a63b5c81 100644
VERSION ${zstd_VERSION_MAJOR}.${zstd_VERSION_MINOR}.${zstd_VERSION_PATCH}
SOVERSION ${zstd_VERSION_MAJOR})
endif ()
@@ -131,7 +131,7 @@ if (ZSTD_BUILD_STATIC)
@@ -214,7 +215,7 @@ if (ZSTD_BUILD_STATIC)
libzstd_static
PROPERTIES
POSITION_INDEPENDENT_CODE On
- OUTPUT_NAME ${STATIC_LIBRARY_BASE_NAME})
+ OUTPUT_NAME libzstd_a)
endif ()

if (UNIX OR MINGW)
# pkg-config