mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 17:26:41 +00:00
Restore *-android build
Modify CT_TARGET_CFLAGS (which are passed to GCC's FOR_TARGET flags) rather than CT_ALL_TARGET_CFLAGS. Fixes #1006. Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
parent
a6580b8e8b
commit
b0e7b57c4a
@ -26,7 +26,13 @@ do_libc() {
|
|||||||
fi
|
fi
|
||||||
CT_DoStep INFO "Installing C library binaries"
|
CT_DoStep INFO "Installing C library binaries"
|
||||||
CT_DoExecLog ALL cp -r "${CT_SRC_DIR}/android-ndk/platforms/android-${CT_ANDROID_API}/arch-${arch}/usr" "${CT_SYSROOT_DIR}"
|
CT_DoExecLog ALL cp -r "${CT_SRC_DIR}/android-ndk/platforms/android-${CT_ANDROID_API}/arch-${arch}/usr" "${CT_SYSROOT_DIR}"
|
||||||
CT_EnvModify CT_ALL_TARGET_CFLAGS "${CT_ALL_TARGET_CFLAGS} -D__ANDROID_API__=${CT_ANDROID_API}"
|
|
||||||
|
# NB: Modifying CT_TARGET_CFLAGS here, not CT_ALL_TARGET_CFLAGS: the __ANDROID_API__
|
||||||
|
# definition needs to be passed into GCC build, or the resulting libstdc++ gets
|
||||||
|
# miscompiled (attempt to link against it results in unresolved symbols to stdout/...).
|
||||||
|
# And since __ANDROID_API__ is a user config option, placing it with other user-supplied
|
||||||
|
# options isn't completely out of character.
|
||||||
|
CT_EnvModify CT_TARGET_CFLAGS "${CT_TARGET_CFLAGS} -D__ANDROID_API__=${CT_ANDROID_API}"
|
||||||
}
|
}
|
||||||
|
|
||||||
do_libc_post_cc() {
|
do_libc_post_cc() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user