Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
toolchain: add -fPIC to CPPFLAGS for i686
When adding this, we go from compiling with /home/builder/.termux-build/_cache/android-r21d-api-24-v4/bin/clang++ [...] -mrelocation-model pic -pic-level 2 -pic-is-pie [...] to /home/builder/.termux-build/_cache/android-r21d-api-24-v5/bin/clang++ [...] -mrelocation-model pic -pic-level 2 [...] Before, we got a warning when compiling libandroid-spawn: /home/builder/.termux-build/_cache/android-r21d-api-24-v4/bin/../lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: warning: shared library text segment is not shareable and trying to use a program linked against libandroid-spawn gave an error, see #7215 (comment) the Without this, libraries might end up with text relocations. For some reason it does not seem to be an issue on the other arches. %ci:no-build
- Loading branch information