File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
4343recipe = LibxsltRecipe ()
Original file line number Diff line number Diff 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
3737recipe = LXMLRecipe ()
You can’t perform that action at this time.
0 commit comments