Skip to content

Commit 7a515d0

Browse files
committed
Fix strip failing (when arch is other than armeabi-v7a, e.g. x86) due to hardcoding
1 parent 178d552 commit 7a515d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythonforandroid/bootstrap.py

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,11 @@ def strip_libraries(self, arch):
263263
info('Python was loaded from CrystaX, skipping strip')
264264
return
265265
env = arch.get_env()
266-
strip = which('arm-linux-androideabi-strip', env['PATH'])
266+
strip = env['STRIP'].split(' ')[0]
267267
if strip is None:
268268
warning('Can\'t find strip in PATH...')
269269
return
270-
strip = sh.Command(strip)
270+
strip = sh.Command(strip).bake('--strip-unneeded')
271271

272272
libs_dir = join(self.dist_dir, '_python_bundle',
273273
'_python_bundle', 'modules')

0 commit comments

Comments
 (0)