libgcrypt: Disable asm also for x86_64
[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
9fa59b1c 4TERMUX_PKG_BUILD_REVISION=4
59f0d218 5
4c96d3fb 6termux_step_make_install () {
344b88f9 7 local LIBFILE=$TERMUX_STANDALONE_TOOLCHAIN/${TERMUX_HOST_PLATFORM}/lib/libgnustl_shared.so
e3b2052e 8 if [ $TERMUX_ARCH = arm ]; then
9fa59b1c 9 LIBFILE=$TERMUX_STANDALONE_TOOLCHAIN/${TERMUX_HOST_PLATFORM}/lib/armv7-a/libgnustl_shared.so
ca6dcf19
FF
10 elif [ $TERMUX_ARCH = x86_64 ]; then
11 LIBFILE=$TERMUX_STANDALONE_TOOLCHAIN/${TERMUX_HOST_PLATFORM}/lib64/libgnustl_shared.so
e3b2052e 12 fi
4c96d3fb
FF
13
14 cp $LIBFILE $TERMUX_PREFIX/lib/
59f0d218 15}
344b88f9
FF
16
17termux_step_post_massage () {
18 # Setup a libgnustl_shared.so in $PREFIX/lib, so that other C++ using packages
19 # links to it. We do however want to avoid installing this, to avoid problems
20 # where e.g. libm.so on some i686 devices links against libstdc++.so, so do
21 # this here in termux_step_post_massage.
22 cd $TERMUX_PREFIX/lib
9fa59b1c 23 ln -f -s libgnustl_shared.so libstdc++.so
344b88f9 24}