npth: Update from 1.2 to 1.3
[termux-packages] / packages / libgcrypt / build.sh
CommitLineData
0a94e660 1TERMUX_PKG_VERSION=1.7.3
59f0d218
FF
2TERMUX_PKG_HOMEPAGE=http://www.gnu.org/software/libgcrypt/
3TERMUX_PKG_DESCRIPTION="General purpose cryptographic library based on the code from GnuPG"
4TERMUX_PKG_SRCURL=ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${TERMUX_PKG_VERSION}.tar.bz2
5TERMUX_PKG_DEPENDS="libgpg-error"
bb27a0ec
FF
6# configure tries to detect pthreads by linking with -lpthread, which does not exist on Android:
7TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_lib_pthread_pthread_create=yes"
59f0d218
FF
8
9termux_step_pre_configure () {
7ce56385
FF
10 LDFLAGS="$LDFLAGS -llog" # libgcrypt uses syslog, which we redirect to android logging
11
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"
7ce56385
FF
15 # Avoid text relocations:
16 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" gcry_cv_gcc_inline_asm_neon=no"
55835f21 17 fi
7ce56385 18
6c9a53e3 19 if [ $TERMUX_ARCH = "i686" -o $TERMUX_ARCH = "x86_64" ]; then
59f0d218
FF
20 # Fix i686 android build, also in https://bugzilla.gnome.org/show_bug.cgi?id=724050
21 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-asm"
22 fi
23}