| 1 | TERMUX_PKG_HOMEPAGE=http://gcc.gnu.org/onlinedocs/libstdc++/ |
| 2 | TERMUX_PKG_DESCRIPTION="The GNU Standard C++ Library (a.k.a. libstdc++-v3), necessary on android since the system libstdc++.so is stripped down" |
| 3 | TERMUX_PKG_VERSION=$TERMUX_NDK_VERSION |
| 4 | # Since every C++ package links against this by default (due |
| 5 | # to the libstdc++.so -> libgnustl_shared.so setup in |
| 6 | # build-package.sh) this package is considered essential, |
| 7 | # and other packages does not need to declare explicit |
| 8 | # dependency on it. |
| 9 | TERMUX_PKG_ESSENTIAL=yes |
| 10 | |
| 11 | termux_step_post_massage () { |
| 12 | # We take the library here after massage step to |
| 13 | # avoid stripping the library after running termux-elf-cleaner, |
| 14 | # which causes a broken library (program compiled on the |
| 15 | # device linking to the library will segfault, at least on aarch64). |
| 16 | mkdir lib |
| 17 | cp $TERMUX_PREFIX/lib/libgnustl_shared.so lib/ |
| 18 | } |