termux-packages/packages/libelf/build.sh
Fredrik Fornwall 637f22d133 Remove DT_VERDEF and DT_VERDEFNUM elf entries
This fixes Android 6 problems (so closes #26).

It also rebuilds termux-elf-cleaner when needed
and bumps some build revisions for packages
needed updates to remove DT_VERDEF and DT_VERDEFNUM.
2015-10-13 15:48:40 -04:00

23 lines
723 B
Bash

TERMUX_PKG_VERSION=0.161
TERMUX_PKG_BUILD_REVISION=1
TERMUX_PKG_HOMEPAGE=https://fedorahosted.org/elfutils/
TERMUX_PKG_DESCRIPTION="ELF object file access library"
TERMUX_PKG_SRCURL=https://fedorahosted.org/releases/e/l/elfutils/${TERMUX_PKG_VERSION}/elfutils-${TERMUX_PKG_VERSION}.tar.bz2
LDFLAGS+=" -lintl"
CFLAGS+=" -DTERMUX_EXPOSE_MEMPCPY=1"
termux_step_pre_make () {
export TERMUX_PKG_BUILDDIR=$TERMUX_PKG_BUILDDIR/libelf
cd $TERMUX_PKG_BUILDDIR
}
termux_step_post_make_install () {
make install-includeHEADERS
}
termux_step_post_massage () {
# Remove to avoid spurios linking to libelf (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=10648):
rm -f $TERMUX_PREFIX/lib/libelf*
}