Skip to content

Commit 75d21a1

Browse files
ZachGoldberggoffi-contrib
authored andcommitted
Working lxml?!
1 parent aec77a1 commit 75d21a1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pythonforandroid/recipes/libxslt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def get_recipe_env(self, arch):
3737
env['CONFIG_SHELL'] = '/bin/bash'
3838
env['SHELL'] = '/bin/bash'
3939
env['CC'] = '/usr/bin/ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer'
40-
env['LDSHARED'] = env['CC']
40+
env['LDSHARED'] = "%s -nostartfiles -shared -fPIC" % env['CC']
4141
return env
4242

4343
recipe = LibxsltRecipe()

pythonforandroid/recipes/lxml/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def get_recipe_env(self, arch):
3030
bxsl = "/home/zgoldberg/.local/share/python-for-android/build/other_builds/libxslt/armeabi/libxslt"
3131
targetpython = "%s/include/python2.7/" % dirname(dirname(self.ctx.hostpython))
3232
env['CC'] += " -I%s/include -I%s -I%s" % (bxml, bxsl, targetpython)
33-
env['LDSHARED'] = '%s -lpython2.7 -nostartfiles' % env['CC']
34-
33+
env['LDSHARED'] = '%s -nostartfiles -shared -fPIC -lpython2.7' % env['CC']
34+
print env['LDSHARED']
3535
return env
3636

3737
recipe = LXMLRecipe()

0 commit comments

Comments
 (0)