fdroiddata/metadata/com.freerdp.afreerdp/2.0.0-rc0-gcc-sysroot.diff

16 lines
524 B
Diff
Raw Normal View History

diff --git a/cmake/AndroidToolchain.cmake b/cmake/AndroidToolchain.cmake
index d682e28df..fcc47399a 100644
--- a/cmake/AndroidToolchain.cmake
+++ b/cmake/AndroidToolchain.cmake
@@ -1369,6 +1369,10 @@ if( ANDROID_COMPILER_IS_CLANG )
if( BUILD_WITH_ANDROID_NDK )
set( ANDROID_CXX_FLAGS "-gcc-toolchain ${ANDROID_TOOLCHAIN_ROOT} ${ANDROID_CXX_FLAGS}" )
endif()
+else()
+ if( BUILD_WITH_ANDROID_NDK )
+ set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} --sysroot=${ANDROID_SYSROOT}" )
+ endif()
endif()
# cache flags