Skip to content

Commit 2206b23

Browse files
committed
Fix libpython link
1 parent f52991b commit 2206b23

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pythonforandroid/recipe.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,6 +1627,7 @@ def get_recipe_env(self, arch, **kwargs):
16271627
env["RUSTFLAGS"] = "-Clink-args=-L{} -L{}".format(
16281628
self.ctx.get_libs_dir(arch.arch), join(realpython_dir, "android-build")
16291629
)
1630+
env["RUSTFLAGS"] += f" -Clink-arg=-lpython{self.ctx.python_recipe.link_version}"
16301631

16311632
env["PYO3_CROSS_LIB_DIR"] = realpath(glob.glob(join(
16321633
realpython_dir, "android-build", "build",

0 commit comments

Comments
 (0)