libtalloc: Patch to avoid linking against libcrypt
[termux-packages] / packages / libtalloc / build.sh
CommitLineData
6d461571
FF
1TERMUX_PKG_HOMEPAGE=https://talloc.samba.org/talloc/doc/html/index.html
2TERMUX_PKG_DESCRIPTION="Hierarchical, reference counted memory pool system with destructors"
0feaa732 3TERMUX_PKG_VERSION=2.1.8
6d461571
FF
4TERMUX_PKG_SRCURL=https://www.samba.org/ftp/talloc/talloc-${TERMUX_PKG_VERSION}.tar.gz
5TERMUX_PKG_BUILD_IN_SRC="yes"
6
7termux_step_configure () {
d13d71aa
FF
8 # Force fresh install:
9 rm -f $TERMUX_PREFIX/include/talloc.h
10
c29568fd 11 # Make sure symlinks are installed:
f861fe19 12 rm $TERMUX_PREFIX/lib/libtalloc* || true
c29568fd 13
6d461571
FF
14 cd $TERMUX_PKG_SRCDIR
15
16 cat <<EOF > cross-answers.txt
17Checking uname sysname type: "Linux"
18Checking uname machine type: "dontcare"
19Checking uname release type: "dontcare"
20Checking uname version type: "dontcare"
21Checking simple C program: OK
22building library support: OK
23Checking for large file support: OK
24Checking for -D_FILE_OFFSET_BITS=64: OK
25Checking for WORDS_BIGENDIAN: OK
26Checking for C99 vsnprintf: OK
27Checking for HAVE_SECURE_MKSTEMP: OK
28rpath library support: OK
59ca138b 29-Wl,--version-script support: FAIL
6d461571
FF
30Checking correct behavior of strtoll: OK
31Checking correct behavior of strptime: OK
32Checking for HAVE_IFACE_GETIFADDRS: OK
33Checking for HAVE_IFACE_IFCONF: OK
34Checking for HAVE_IFACE_IFREQ: OK
35Checking getconf LFS_CFLAGS: OK
36Checking for large file support without additional flags: OK
37Checking for working strptime: OK
38Checking for HAVE_SHARED_MMAP: OK
39Checking for HAVE_MREMAP: OK
40Checking for HAVE_INCOHERENT_MMAP: OK
41Checking getconf large file support flags work: OK
42EOF
43
44 ./configure --prefix=$TERMUX_PREFIX \
45 --disable-rpath \
46 --cross-compile \
47 --cross-answers=cross-answers.txt
48}