@ -1,6 +1,7 @@
# Status: Does not build with clang
TERMUX_PKG_HOMEPAGE = https://sourceware.org/elfutils/
TERMUX_PKG_DESCRIPTION = "ELF object file access library"
# NOTE: We only build the libelf part of elfutils for now,
# as other parts are not clang compatible.
TERMUX_PKG_VERSION = ( 0.173
1.3)
TERMUX_PKG_SHA256 = ( b76d8c133f68dad46250f5c223482c8299d454a69430d9aa5c19123345a000ff
@ -8,13 +9,18 @@ TERMUX_PKG_SHA256=(b76d8c133f68dad46250f5c223482c8299d454a69430d9aa5c19123345a00
TERMUX_PKG_SRCURL = ( ftp://sourceware.org/pub/elfutils/${ TERMUX_PKG_VERSION } /elfutils-${ TERMUX_PKG_VERSION } .tar.bz2
http://www.lysator.liu.se/~nisse/archive/argp-standalone-${ TERMUX_PKG_VERSION [1] } .tar.gz)
# libandroid-support for langinfo.
TERMUX_PKG_DEPENDS = "libandroid-support, liblzma, libbz2 "
TERMUX_PKG_DEPENDS = "libandroid-support"
# Use "eu-" as program prefix to avoid conflict with binutils programs.
# This is what several linux distributions do.
TERMUX_PKG_EXTRA_CONFIGURE_ARGS = " --program-prefix='eu-'
--disable-symbol-versioning"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS = "
ac_cv_c99 = yes
--program-prefix= 'eu-'
--disable-symbol-versioning
"
# The ar.c file is patched away for now:
TERMUX_PKG_RM_AFTER_INSTALL = "bin/eu-ar"
TERMUX_PKG_CONFLICTS = elfutils
TERMUX_PKG_REPLACES = elfutils
termux_step_pre_configure( ) {
CFLAGS += " -Wno-error=unused-value -Wno-error=format-nonliteral -Wno-error"
@ -39,3 +45,12 @@ termux_step_pre_configure() {
LDFLAGS += " -L $TERMUX_PKG_SRCDIR /argp-standalone- ${ TERMUX_PKG_VERSION [1] } "
CPPFLAGS += " -isystem $TERMUX_PKG_SRCDIR /argp-standalone- ${ TERMUX_PKG_VERSION [1] } "
}
termux_step_make( ) {
make -j $TERMUX_MAKE_PROCESSES -C lib
make -j $TERMUX_MAKE_PROCESSES -C libelf
}
termux_step_make_install( ) {
make -j $TERMUX_MAKE_PROCESSES -C libelf install
}