diff --git a/packages/ndk-sysroot/build.sh b/packages/ndk-sysroot/build.sh index 5a42f636c..8158fbb93 100644 --- a/packages/ndk-sysroot/build.sh +++ b/packages/ndk-sysroot/build.sh @@ -17,6 +17,8 @@ termux_step_extract_into_massagedir() { cp -Rf $TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/include/* \ $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/include + patch -d $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/include/c++/v1 -p1 < $TERMUX_PKG_BUILDER_DIR/math-header.diff + cp $TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/lib/$TERMUX_HOST_PLATFORM/$TERMUX_PKG_API_LEVEL/*.o \ $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib diff --git a/packages/ndk-sysroot/math-header.diff b/packages/ndk-sysroot/math-header.diff new file mode 100644 index 000000000..391099a00 --- /dev/null +++ b/packages/ndk-sysroot/math-header.diff @@ -0,0 +1,22 @@ +--- data/data/com.termux/files/usr/include/c++/v1/cmath.orig 2019-03-24 00:31:49.512145195 +0000 ++++ ./cmath 2019-03-24 00:32:19.392703442 +0000 +@@ -302,7 +302,7 @@ + */ + + #include <__config> +-#include ++#include + #include "version" + + #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) +--- data/data/com.termux/files/usr/include/c++/v1/math.h.orig 2019-03-24 01:10:28.881807799 +0000 ++++ ./math.h 2019-03-24 01:11:01.078384393 +0000 +@@ -298,7 +298,7 @@ + #pragma GCC system_header + #endif + +-#include_next ++#include "../../math.h" + + #ifdef __cplusplus +