Stand in srcdir for termux_step_pre_configure
[termux-packages] / packages / libgnustl / build.sh
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 TERMUX_PKG_REVISION=1
5 # Since every C++ package links against this by default (due
6 # to the libstdc++.so -> libgnustl_shared.so setup in
7 # build-package.sh) this package is considered essential,
8 # and other packages does not need to declare explicit
9 # dependency on it.
10 TERMUX_PKG_ESSENTIAL=yes
11
12 termux_step_post_massage () {
13 # We take the library here after massage step to
14 # avoid stripping the library after running termux-elf-cleaner,
15 # which causes a broken library (program compiled on the
16 # device linking to the library will segfault, at least on aarch64).
17 mkdir lib
18 cp $TERMUX_PREFIX/lib/libgnustl_shared.so lib/
19 }