File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
pythonforandroid/recipes/pysha3 Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 6
6
class Pysha3Recipe (PythonRecipe ):
7
7
version = '1.0.2'
8
8
url = 'https://github.com/tiran/pysha3/archive/{version}.tar.gz'
9
- depends = [('python2' , 'python3crystax' ), 'setuptools' ]
9
+ depends = ['setuptools' ]
10
+ call_hostpython_via_targetpython = False
10
11
11
12
def get_recipe_env (self , arch = None , with_flags_in_cc = True ):
12
13
env = super (Pysha3Recipe , self ).get_recipe_env (arch , with_flags_in_cc )
13
- # sets linker to use the correct gcc (cross compiler)
14
- env ['LDSHARED' ] = env ['CC' ] + ' -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions'
15
14
# CFLAGS may only be used to specify C compiler flags, for macro definitions use CPPFLAGS
16
- env ['CPPFLAGS' ] = env ['CFLAGS' ] + ' -I{}/sources/python/3.5/include/python/' .format (self .ctx .ndk_dir )
15
+ env ['CPPFLAGS' ] = env ['CFLAGS' ]
16
+ if self .ctx .ndk == 'crystax' :
17
+ env ['CPPFLAGS' ] += ' -I{}/sources/python/{}/include/python/' .format (
18
+ self .ctx .ndk_dir , self .ctx .python_recipe .version [0 :3 ])
17
19
env ['CFLAGS' ] = ''
18
20
# LDFLAGS may only be used to specify linker flags, for libraries use LIBS
19
21
env ['LDFLAGS' ] = env ['LDFLAGS' ].replace ('-lm' , '' ).replace ('-lcrystax' , '' )
You can’t perform that action at this time.
0 commit comments