gcc: float=hard -> float=softp for arm
[termux-packages] / packages / libgnustl / build.sh
CommitLineData
59f0d218
FF
1TERMUX_PKG_HOMEPAGE=http://gcc.gnu.org/onlinedocs/libstdc++/
2TERMUX_PKG_DESCRIPTION="The GNU Standard C++ Library (a.k.a. libstdc++-v3), necessary on android since the system libstdc++.so is stripped down"
3TERMUX_PKG_VERSION=$TERMUX_NDK_VERSION
e3b2052e 4TERMUX_PKG_BUILD_REVISION=3
59f0d218 5
4c96d3fb 6termux_step_make_install () {
344b88f9 7 local LIBFILE=$TERMUX_STANDALONE_TOOLCHAIN/${TERMUX_HOST_PLATFORM}/lib/libgnustl_shared.so
e3b2052e
FF
8 if [ $TERMUX_ARCH = arm ]; then
9 LIBFILE=$TERMUX_STANDALONE_TOOLCHAIN/${TERMUX_HOST_PLATFORM}/lib/armv7-a/hard/libgnustl_shared.so
10 fi
4c96d3fb
FF
11
12 cp $LIBFILE $TERMUX_PREFIX/lib/
59f0d218 13}
344b88f9
FF
14
15termux_step_post_massage () {
16 # Setup a libgnustl_shared.so in $PREFIX/lib, so that other C++ using packages
17 # links to it. We do however want to avoid installing this, to avoid problems
18 # where e.g. libm.so on some i686 devices links against libstdc++.so, so do
19 # this here in termux_step_post_massage.
20 cd $TERMUX_PREFIX/lib
21 ln -s libgnustl_shared.so libstdc++.so
22}