android/build.py: add -fpic
Android native code should be position-independent. The NDK build scripts use "-fpic" instead of "-fPIC" for ARM, but that doesn't work with FFmpeg's assembly code, because it requires R_ARM_MOVW_ABS_NC which is unavailable with "-fpic".
This commit is contained in:
parent
cad5d11261
commit
9e058732ee
|
@ -66,6 +66,7 @@ class AndroidNdkToolchain:
|
|||
llvm_triple = 'armv7-none-linux-androideabi'
|
||||
|
||||
common_flags = '-Os -g'
|
||||
common_flags += ' -fPIC'
|
||||
common_flags += ' -march=armv7-a -mfloat-abi=softfp'
|
||||
|
||||
toolchain_bin = os.path.join(toolchain_path, 'bin')
|
||||
|
|
Loading…
Reference in New Issue