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 |
|
16 |
+cc = meson.get_compiler('c') |
7 |
-sizeof_off_t = meson.get_compiler('cpp').sizeof('off_t') |
17 |
+execinfo_dep = cc.find_library('execinfo', required : false) |
8 |
+cpp = meson.get_compiler('cpp') |
18 |
+ |
9 |
+sizeof_off_t = cpp.sizeof('off_t') |
19 |
static_linkage = get_option('static-linkage') |
|
|
20 |
static_linkage = static_linkage or get_option('default_library')=='static' |
21 |
|
10 |
|
22 |
@@ -73,3 +76,4 @@ pkg_mod.generate(libraries : libzim, |
11 |
conf = configuration_data() |
23 |
filebase : 'libzim', |
12 |
conf.set('VERSION', '"@0@"'.format(meson.project_version())) |
24 |
description : 'A Library to zim.', |
13 |
@@ -32,6 +33,10 @@ lzma_dep = dependency('liblzma', static:static_linkage |
25 |
requires : pkg_requires) |
14 |
|
|
|
15 |
zstd_dep = dependency('libzstd', required:false, static:static_linkage) |
16 |
conf.set('ENABLE_ZSTD', zstd_dep.found()) |
26 |
+ |
17 |
+ |
|
|
18 |
+if target_machine.system() == 'freebsd' |
19 |
+ execinfo_dep = cpp.find_library('execinfo') |
20 |
+endif |
21 |
|
22 |
xapian_dep = dependency('xapian-core', |
23 |
required:false, |