Skip to content

Commit ed1e1a8

Browse files
committed
Added -lpython3.5m for py3 builds
1 parent 61543e8 commit ed1e1a8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pythonforandroid/recipe.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,13 @@ def get_recipe_env(self, arch, with_flags_in_cc=True):
10891089
self.ctx.python_recipe.version, 'include',
10901090
'python')) + env['CFLAGS']
10911091

1092+
# Temporarily hardcode the -lpython3.5 as this does not
1093+
# get applied automatically in some environments. This
1094+
# will need generalising, along with the other hardcoded
1095+
# py3.5 references, to support other python3 or crystax
1096+
# python versions.
1097+
env['LDFLAGS'] = env['LDFLAGS'] + ' -lpython3.5m'
1098+
10921099
return env
10931100

10941101

0 commit comments

Comments
 (0)