Skip to content

Commit 148b1a1

Browse files
committed
libzmq: fix compilation under arch-arm64
1 parent ce9b571 commit 148b1a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pythonforandroid/recipes/libzmq/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def build_arch(self, arch):
3535
'--without-documentation',
3636
'--prefix={}'.format(prefix),
3737
'--with-libsodium=no',
38+
'--disable-libunwind',
3839
_env=env)
3940
shprint(sh.make, _env=env)
4041
shprint(sh.make, 'install', _env=env)
@@ -72,8 +73,8 @@ def get_recipe_env(self, arch):
7273
env['CXXFLAGS'] += ' -lgnustl_shared'
7374
env['LDFLAGS'] += ' -L{}/sources/cxx-stl/gnu-libstdc++/{}/libs/{}'.format(
7475
self.ctx.ndk_dir, self.ctx.toolchain_version, arch)
75-
env['CXXFLAGS'] += ' --sysroot={}/platforms/android-{}/arch-arm'.format(
76-
self.ctx.ndk_dir, self.ctx.ndk_api)
76+
env['CXXFLAGS'] += ' --sysroot={}/platforms/android-{}/{}'.format(
77+
self.ctx.ndk_dir, self.ctx.ndk_api, arch.platform_dir)
7778
return env
7879

7980

0 commit comments

Comments
 (0)