mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-24 21:06:42 -04:00
Correctly ask link flags to pkg-config.
If we are compiling a static binaries, all dependencies (including indirect dependencies) must be present on the command line. To have them, we have to add '--static' option to the pkg-config line. Meson does this for us, but we must ask it to do it with the 'static' argument.
This commit is contained in:
parent
0f6ca21188
commit
dc6c9d618f
@ -8,9 +8,9 @@ if static_linkage
|
||||
endif
|
||||
|
||||
thread_dep = dependency('threads')
|
||||
kiwixlib_dep = dependency('kiwix')
|
||||
microhttpd_dep = dependency('libmicrohttpd')
|
||||
z_dep = dependency('zlib')
|
||||
kiwixlib_dep = dependency('kiwix', static:static_linkage)
|
||||
microhttpd_dep = dependency('libmicrohttpd', static:static_linkage)
|
||||
z_dep = dependency('zlib', static:static_linkage)
|
||||
|
||||
# Idealy we should not have more dependency, however :
|
||||
# We should declare we use ctpp2 in kiwixlib in the pkg-config file.
|
||||
|
Loading…
x
Reference in New Issue
Block a user