Lines 1-26
Link Here
|
1 |
--- meson.build.orig 2019-04-15 13:10:25 UTC |
1 |
--- meson.build.orig 2020-07-15 14:24:54 UTC |
2 |
+++ meson.build |
2 |
+++ meson.build |
3 |
@@ -1,7 +1,7 @@ |
3 |
@@ -7,7 +7,8 @@ if build_machine.system() != 'windows' |
4 |
project('libzim', ['c', 'cpp'], |
|
|
5 |
version : '4.0.7', |
6 |
license : 'GPL2', |
7 |
- default_options : ['c_std=c11', 'cpp_std=c++11', 'werror=true']) |
8 |
+ default_options : ['c_std=c11', 'cpp_std=c++11']) |
9 |
|
10 |
if build_machine.system() != 'windows' |
11 |
add_project_arguments('-D_LARGEFILE64_SOURCE=1', '-D_FILE_OFFSET_BITS=64', language: 'cpp') |
4 |
add_project_arguments('-D_LARGEFILE64_SOURCE=1', '-D_FILE_OFFSET_BITS=64', language: 'cpp') |
12 |
@@ -22,6 +22,9 @@ else |
|
|
13 |
endif |
5 |
endif |
14 |
conf.set('ENABLE_USE_BUFFER_HEADER', get_option('USE_BUFFER_HEADER')) |
|
|
15 |
|
6 |
|
|
|
7 |
-sizeof_off_t = meson.get_compiler('cpp').sizeof('off_t') |
8 |
+cpp = meson.get_compiler('cpp') |
9 |
+sizeof_off_t = cpp.sizeof('off_t') |
10 |
|
11 |
conf = configuration_data() |
12 |
conf.set('VERSION', '"@0@"'.format(meson.project_version())) |
13 |
@@ -21,6 +22,9 @@ else |
14 |
conf.set('ENABLE_USE_MMAP', get_option('USE_MMAP')) |
15 |
endif |
16 |
conf.set('ENABLE_USE_BUFFER_HEADER', get_option('USE_BUFFER_HEADER')) |
17 |
+ |
16 |
+cc = meson.get_compiler('c') |
18 |
+cc = meson.get_compiler('c') |
17 |
+execinfo_dep = cc.find_library('execinfo', required : false) |
19 |
+execinfo_dep = cc.find_library('execinfo', required : false) |
18 |
+ |
20 |
|
19 |
static_linkage = get_option('static-linkage') |
21 |
static_linkage = get_option('static-linkage') |
20 |
static_linkage = static_linkage or get_option('default_library')=='static' |
22 |
static_linkage = static_linkage or get_option('default_library')=='static' |
21 |
|
|
|
22 |
@@ -73,3 +76,4 @@ pkg_mod.generate(libraries : libzim, |
23 |
filebase : 'libzim', |
24 |
description : 'A Library to zim.', |
25 |
requires : pkg_requires) |
26 |
+ |