talloc: Don't fail build if we couldn't clean
[termux-packages] / disabled-packages / libtalloc / build.sh
1 # Compiles, but unused (proot will perhaps use it)
2 TERMUX_PKG_HOMEPAGE=https://talloc.samba.org/talloc/doc/html/index.html
3 TERMUX_PKG_DESCRIPTION="Hierarchical, reference counted memory pool system with destructors"
4 TERMUX_PKG_VERSION=2.1.5
5 TERMUX_PKG_SRCURL=https://www.samba.org/ftp/talloc/talloc-${TERMUX_PKG_VERSION}.tar.gz
6 TERMUX_PKG_BUILD_IN_SRC="yes"
7
8 termux_step_configure () {
9 # Make sure symlinks are installed:
10 rm $TERMUX_PREFIX/lib/libtalloc* || true
11
12 cd $TERMUX_PKG_SRCDIR
13
14 cat <<EOF > cross-answers.txt
15 Checking uname sysname type: "Linux"
16 Checking uname machine type: "dontcare"
17 Checking uname release type: "dontcare"
18 Checking uname version type: "dontcare"
19 Checking simple C program: OK
20 building library support: OK
21 Checking for large file support: OK
22 Checking for -D_FILE_OFFSET_BITS=64: OK
23 Checking for WORDS_BIGENDIAN: OK
24 Checking for C99 vsnprintf: OK
25 Checking for HAVE_SECURE_MKSTEMP: OK
26 rpath library support: OK
27 -Wl,--version-script support: OK
28 Checking correct behavior of strtoll: OK
29 Checking correct behavior of strptime: OK
30 Checking for HAVE_IFACE_GETIFADDRS: OK
31 Checking for HAVE_IFACE_IFCONF: OK
32 Checking for HAVE_IFACE_IFREQ: OK
33 Checking getconf LFS_CFLAGS: OK
34 Checking for large file support without additional flags: OK
35 Checking for working strptime: OK
36 Checking for HAVE_SHARED_MMAP: OK
37 Checking for HAVE_MREMAP: OK
38 Checking for HAVE_INCOHERENT_MMAP: OK
39 Checking getconf large file support flags work: OK
40 EOF
41
42 ./configure --prefix=$TERMUX_PREFIX \
43 --disable-rpath \
44 --cross-compile \
45 --cross-answers=cross-answers.txt
46 }