mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-09-22 20:07:13 -04:00
Pass correct option -Dstatic_linkage
to libzim in native_mixed platform.
In native_mixed, we want to build a shared lib but we need to compile with the static lib of the dependencies.
This commit is contained in:
parent
466dc8b64a
commit
4eb95fd4cc
@ -2,6 +2,7 @@ from .base import (
|
||||
Dependency,
|
||||
GitClone,
|
||||
MesonBuilder)
|
||||
from kiwixbuild._global import option
|
||||
|
||||
class Libzim(Dependency):
|
||||
name = "libzim"
|
||||
@ -21,4 +22,6 @@ class Libzim(Dependency):
|
||||
return "-DUSE_BUFFER_HEADER=false"
|
||||
if platformInfo.build == 'iOS':
|
||||
return "-Db_bitcode=true"
|
||||
if platformInfo.name == 'native_mixed' and option('target') == 'libzim':
|
||||
return "-Dstatic-linkage=true"
|
||||
return ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user