From 26d06324312b8fe6980ff29ab9d443cc5ec2657f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 23 Dec 2019 23:50:54 +0100 Subject: Bug 1417 - Android: Classify SYSROOTs in NDK for native libraries (link) and headers (compile) Utilizing '-sysroot' with the linker, we require standard FS layout. '~/Android/Sdk/ndk/20.1.5948944/platforms/android-24/arch-arm64' contains the proper std FS layout for libraries under usr/lib, but lacks the header files. We call this 'ANDROID_TOOLCHAIN_SYSROOT0' and shall be used for linking. '~/Android/Sdk/ndk/20.1.5948944/toolchains/llvm/prebuilt/linux-x86_64/sysroot' native libraries are not under std FS layout, but headers are under std FS layout for compilation under usr/include. We call this 'ANDROID_TOOLCHAIN_SYSROOT1' and shall be used for compilation. Identified while working on openal-soft Android compilation, where we need to pass ANDROID_TOOLCHAIN_SYSROOT0 --- make/lib/gluegen-cpptasks-android-x86.xml | 11 +++++------ 1 file changed, 5 insertions(+), 6 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 bcdc76c..ef33daa 100644 --- a/make/lib/gluegen-cpptasks-android-x86.xml +++ b/make/lib/gluegen-cpptasks-android-x86.xml @@ -32,7 +32,7 @@ - + @@ -69,7 +69,7 @@ - + @@ -81,10 +81,9 @@ - - - - + + + -- cgit v1.2.3