Skip to content

Commit

Permalink
android: build with clang instead of GCC
Browse files Browse the repository at this point in the history
Attempt to fix "undefined reference to 'stdout' by
building with clang instead of GCC.

ref:
android/ndk#445 (comment)

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
  • Loading branch information
neolit123 committed Apr 29, 2018
1 parent 588457f commit 0e4b9ab
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 @@ -148,8 +148,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 0e4b9ab

Please sign in to comment.