From ae4cdcf3490a1bf493f39ab5c8c6b596d3af71de Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 24 Dec 2019 08:51:08 +0100 Subject: Bug 1417 - Android: Add ANDROID_TOOLCHAIN_SYSROOT1_INC_STL for LLVM's C++ STL headers (default since NDK r18) Using LLVM's c++_shared as of NDK r18: https://developer.android.com/ndk/guides/cpp-support.html LLVM's c++ headers must come before other system header! Also see https://github.com/android/ndk/issues/452 and https://gitlab.kitware.com/cmake/cmake/issues/17059 Also adapt make/lib/gluegen-cpptask-android* files: - Compiler -- align for potential C++ usage, i.e.: -- don't use '-sysroot' not '-isysroot' -- IF using C++ STL, prepend ANDROID_TOOLCHAIN_SYSROOT1_INC_STL -- just add normal sysroot headers via '-isystem' - Linker -- Use ANDROID_TOOLCHAIN_SYSROOT1_LIB1 and ANDROID_TOOLCHAIN_SYSROOT1_LIB2 for '-L' search path -- where ANDROID_TOOLCHAIN_SYSROOT1_LIB2 is for 'libc++' -> 'c++_shared' --- make/lib/gluegen-cpptasks-android-x86.xml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'make/lib/gluegen-cpptasks-android-x86.xml') diff --git a/make/lib/gluegen-cpptasks-android-x86.xml b/make/lib/gluegen-cpptasks-android-x86.xml index baedfc1..8b53635 100644 --- a/make/lib/gluegen-cpptasks-android-x86.xml +++ b/make/lib/gluegen-cpptasks-android-x86.xml @@ -32,16 +32,12 @@ - - - - + - - @@ -91,8 +87,9 @@ - - + + + -- cgit v1.2.3