Skip to content

Commit

Permalink
android: use clang instead of gcc
Browse files Browse the repository at this point in the history
GCC is going to be removed in newer NDKs.

GCC has issues according to users:
android/ndk#272 (comment)

Signed-off-by: Lubomir I. Ivanov <[email protected]>
  • Loading branch information
neolit123 committed Apr 29, 2018
1 parent 10fd312 commit 5b44d5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/android/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ export BUILDROOT=$PWD
export PATH=${BUILDROOT}/ndk-$ARCH/bin:$PATH
export PREFIX=${BUILDROOT}/ndk-$ARCH/sysroot/usr
export PKG_CONFIG_LIBDIR=$PREFIX/lib/pkgconfig
export CC=${BUILDROOT}/ndk-$ARCH/bin/${BUILDCHAIN}-gcc
export CXX=${BUILDROOT}/ndk-$ARCH/bin/${BUILDCHAIN}-g++
export CC=${BUILDROOT}/ndk-$ARCH/bin/${BUILDCHAIN}-clang
export CXX=${BUILDROOT}/ndk-$ARCH/bin/${BUILDCHAIN}-clang++
# autoconf seems to get lost without this
export SYSROOT=${BUILDROOT}/ndk-$ARCH/sysroot
export CFLAGS=--sysroot=${SYSROOT}
Expand Down

0 comments on commit 5b44d5f

Please sign in to comment.