diff options
author | Max Kellermann <max@musicpd.org> | 2018-01-19 12:55:57 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-01-19 22:40:59 +0100 |
commit | 9e058732ee2d7bf82f2795c4f964197bc619dc77 (patch) | |
tree | b294030aaabb756d8f2bd30deb7ee4ecd5513e59 /android/build.py | |
parent | cad5d11261de8fea87b8568587f698cb0794e77f (diff) |
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".
Diffstat (limited to 'android/build.py')
-rwxr-xr-x | android/build.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/android/build.py b/android/build.py index c2ee971e2..0b001e7da 100755 --- a/android/build.py +++ b/android/build.py @@ -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') |