Do not use the toolchain file from Android NDK for kirigami2

It adds dubious iinker flags and use of -fundinwd-tables instead
of -fexceptions prevents exceptions to work.
This commit is contained in:
Martchus 2019-02-04 22:29:44 +01:00
parent 3dd579932b
commit 0959503625
1 changed files with 2 additions and 5 deletions

View File

@ -35,12 +35,9 @@ prepare() {
build() {
cd build
# note: using toolchain file from Android NDK to work around https://gitlab.kitware.com/cmake/cmake/issues/18739
# (variables "ANDROID_ABI" and "ANDROID_PLATFORM" are for Android NDK provided toolchain file)
# note: needs workaround for https://gitlab.kitware.com/cmake/cmake/issues/18739 (currently provided outside of the PKGBUILD itself)
cmake ../$_pkgname-$pkgver \
-DANDROID_ABI=$_android_arch \
-DANDROID_PLATFORM=$_android_platform \
-DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk/build/cmake/android.toolchain.cmake \
-DCMAKE_SYSTEM_NAME=Android \
-DCMAKE_SYSTEM_VERSION=$_android_platform \
-DCMAKE_ANDROID_ARCH_ABI=$_android_arch \