Message269816
| Author |
yan12125 |
| Recipients |
Alex.Willmer, xdegaye, yan12125 |
| Date |
2016年07月05日.11:18:40 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1467717523.35.0.850577639812.issue27453@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Motivation: Android NDK is deprecating GCC and moving ot Clang/LLVM. From [1]:
We strongly recommend switching to Clang.
GCC in the NDK is now deprecated in favor of Clang.
This patch fixes the only one problem when migrating GCC to Clang.
In my build script, $CPP is set to "${ANDROID_NDK}/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -E" and $CPPFLAGS is set to "-target armv7-none-linux-androideabi -gcc-toolchain ${ANDROID_NDK}/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot ${ANDROID_NDK}/platforms/android-21/arch-arm/usr -I${PREFIX}/include -DANDROID". I'm not sure whether it's the correct usage of clang, but at least it works.
With such a configuration, most Python parts builds well. Just something wrong - extensions as built as xyz.cpython-36m-x86_64-linux-gnu.so. My patch just fixes $(PLATFORM_TRIPLET) detection.
[1] https://developer.android.com/ndk/downloads/revision_history.html |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年07月05日 11:18:43 | yan12125 | set | recipients:
+ yan12125, xdegaye, Alex.Willmer |
| 2016年07月05日 11:18:43 | yan12125 | set | messageid: <1467717523.35.0.850577639812.issue27453@psf.upfronthosting.co.za> |
| 2016年07月05日 11:18:43 | yan12125 | link | issue27453 messages |
| 2016年07月05日 11:18:41 | yan12125 | create |
|