gnupg2: Update from 2.1.12 to 2.1.13
[termux-packages] / packages / libgcrypt / build.sh
CommitLineData
bb27a0ec 1TERMUX_PKG_VERSION=1.7.0
5f2951be 2TERMUX_PKG_BUILD_REVISION=1
59f0d218
FF
3TERMUX_PKG_HOMEPAGE=http://www.gnu.org/software/libgcrypt/
4TERMUX_PKG_DESCRIPTION="General purpose cryptographic library based on the code from GnuPG"
5TERMUX_PKG_SRCURL=ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${TERMUX_PKG_VERSION}.tar.bz2
6TERMUX_PKG_DEPENDS="libgpg-error"
bb27a0ec
FF
7# configure tries to detect pthreads by linking with -lpthread, which does not exist on Android:
8TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_lib_pthread_pthread_create=yes"
59f0d218
FF
9LDFLAGS="$LDFLAGS -llog" # libgcrypt uses syslog, which we redirect to android logging
10
11termux_step_pre_configure () {
55835f21
FF
12 if [ $TERMUX_ARCH = "arm" ]; then
13 # See http://marc.info/?l=gnupg-devel&m=139136972631909&w=3
14 CFLAGS+=" -mno-unaligned-access"
bb27a0ec
FF
15 # Avoid text relocations:
16 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" gcry_cv_gcc_inline_asm_neon=no"
55835f21 17 fi
59f0d218
FF
18 if [ $TERMUX_ARCH = "i686" ]; then
19 # Fix i686 android build, also in https://bugzilla.gnome.org/show_bug.cgi?id=724050
20 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-asm"
21 fi
22}