From f5db9ff68ae66cf9606fb91133546473d4f343f8 Mon Sep 17 00:00:00 2001 From: its-pointless Date: Mon, 17 Feb 2020 09:11:01 +1100 Subject: [PATCH] libandroid-spawn: use CXX so it links c++ lib --- packages/libandroid-spawn/build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/libandroid-spawn/build.sh b/packages/libandroid-spawn/build.sh index 7427b8000..7f1def817 100644 --- a/packages/libandroid-spawn/build.sh +++ b/packages/libandroid-spawn/build.sh @@ -4,10 +4,11 @@ TERMUX_PKG_LICENSE="BSD 2-Clause" TERMUX_PKG_VERSION=0.2 TERMUX_PKG_SKIP_SRC_EXTRACT=true TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_REVISION=1 termux_step_make() { - $CC $CFLAGS $CPPFLAGS -I$TERMUX_PKG_BUILDER_DIR -c $TERMUX_PKG_BUILDER_DIR/posix_spawn.cpp - $CC $LDFLAGS -shared posix_spawn.o -o libandroid-spawn.so + $CXX $CFLAGS $CPPFLAGS -I$TERMUX_PKG_BUILDER_DIR -c $TERMUX_PKG_BUILDER_DIR/posix_spawn.cpp + $CXX $LDFLAGS -shared posix_spawn.o -o libandroid-spawn.so $AR rcu libandroid-spawn.a posix_spawn.o }