mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-27 21:39:34 +00:00
Temporary fix for facebook/zstd#2073
This commit is contained in:
@ -14,6 +14,7 @@ class zstd(Dependency):
|
||||
archive = Remotefile('zstd-1.4.4.tar.gz',
|
||||
'59ef70ebb757ffe74a7b3fe9c305e2ba3350021a918d168a046c6300aeea9315',
|
||||
'https://github.com/facebook/zstd/releases/download/v1.4.4/zstd-1.4.4.tar.gz')
|
||||
patches = ['zstd_meson.patch']
|
||||
|
||||
class Builder(MesonBuilder):
|
||||
subsource_dir = 'build/meson'
|
||||
|
20
kiwixbuild/patches/zstd_meson.patch
Normal file
20
kiwixbuild/patches/zstd_meson.patch
Normal file
@ -0,0 +1,20 @@
|
||||
diff -ur zstd-1.4.4/build/meson/meson.build zstd-1.4.4.patched/build/meson/meson.build
|
||||
--- zstd-1.4.4/build/meson/meson.build 2019-11-04 21:54:32.000000000 +0400
|
||||
+++ zstd-1.4.4.patched/build/meson/meson.build 2020-04-07 13:59:26.012106549 +0400
|
||||
@@ -68,6 +68,7 @@
|
||||
# Built-in options
|
||||
use_debug = get_option('debug')
|
||||
buildtype = get_option('buildtype')
|
||||
+default_library_type = get_option('default_library')
|
||||
|
||||
# Custom options
|
||||
debug_level = get_option('debug_level')
|
||||
@@ -121,7 +122,7 @@
|
||||
if use_multi_thread
|
||||
msvc_compile_flags += '/MP'
|
||||
endif
|
||||
- if enable_static_runtime
|
||||
+ if use_static_runtime
|
||||
msvc_compile_flags += '/MT'
|
||||
endif
|
||||
add_project_arguments(msvc_compile_flags, language: ['c', 'cpp'])
|
Reference in New Issue
Block a user