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,
|
Dependency,
|
||||||
GitClone,
|
GitClone,
|
||||||
MesonBuilder)
|
MesonBuilder)
|
||||||
|
from kiwixbuild._global import option
|
||||||
|
|
||||||
class Libzim(Dependency):
|
class Libzim(Dependency):
|
||||||
name = "libzim"
|
name = "libzim"
|
||||||
|
@ -21,4 +22,6 @@ class Libzim(Dependency):
|
||||||
return "-DUSE_BUFFER_HEADER=false"
|
return "-DUSE_BUFFER_HEADER=false"
|
||||||
if platformInfo.build == 'iOS':
|
if platformInfo.build == 'iOS':
|
||||||
return "-Db_bitcode=true"
|
return "-Db_bitcode=true"
|
||||||
|
if platformInfo.name == 'native_mixed' and option('target') == 'libzim':
|
||||||
|
return "-Dstatic-linkage=true"
|
||||||
return ""
|
return ""
|
||||||
|
|
Loading…
Reference in New Issue