TERMUX_PKG_VERSION=1.2.20170304
TERMUX_PKG_SRCURL=https://github.com/libunwind/libunwind/archive/${_COMMIT}.zip
TERMUX_PKG_SHA256=fdbe8f0348a0db86663fdf7a363fcb281fef220f85bd751db8ed13aca00c062d
-TERMUX_PKG_FOLDERNAME=libunwind-$_COMMIT
-TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-tests --disable-coredump"
+TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
+--disable-tests
+--disable-coredump
+--disable-minidebuginfo
+"
termux_step_post_extract_package() {
NOCONFIGURE=1 ./autogen.sh
}
+
+termux_step_post_massage() {
+ # Hack to fix problem with building arm c++ code
+ # which should not use this libunwind:
+ rm $TERMUX_PREFIX/lib/libunwind*
+ rm $TERMUX_PREFIX/include/{unwind.h,libunwind*.h}
+}