Merge pull request #704 from kiwix/fix_android_compilation

This commit is contained in:
Matthieu Gautier 2024-06-05 14:39:18 +02:00 committed by GitHub
commit 9f9c03a1b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -45,7 +45,11 @@ class AndroidConfigInfo(ConfigInfo):
return self.ndk_builder.install_path
def get_cross_config(self):
extra_libs = ["-llog"]
extra_libs = [
"-llog",
"-Wl,--exclude-libs,libgcc.a",
"-Wl,--exclude-libs,libunwind.a",
]
extra_cflags = [
"-I{}".format(include_dir) for include_dir in self.get_include_dirs()
]