2016-12-02 21:54:36 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/binutils/
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Collection of binary tools, the main ones being ld, the GNU linker, and as, the GNU assembler"
|
2018-07-21 04:10:21 +02:00
|
|
|
TERMUX_PKG_VERSION=2.31.1
|
2018-09-11 00:46:59 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2018-07-21 04:10:21 +02:00
|
|
|
TERMUX_PKG_SHA256=e88f8d36bd0a75d3765a4ad088d819e35f8d7ac6288049780e2fefcad18dde88
|
2016-09-25 00:42:39 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/binutils/binutils-${TERMUX_PKG_VERSION}.tar.gz
|
2018-03-20 23:10:53 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-gold --enable-plugins --disable-werror --with-system-zlib --enable-new-dtags"
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS="tooldir=$TERMUX_PREFIX"
|
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="share/man/man1/windmc.1 share/man/man1/windres.1 bin/ld.bfd"
|
2018-03-20 23:10:53 +01:00
|
|
|
TERMUX_PKG_KEEP_STATIC_LIBRARIES=true
|
2018-03-20 23:15:46 +01:00
|
|
|
|
2016-01-28 17:17:28 +01:00
|
|
|
# Avoid linking against libfl.so from flex if available:
|
|
|
|
export LEXLIB=
|
|
|
|
|
2018-09-19 23:29:39 +02:00
|
|
|
termux_step_pre_configure () {
|
|
|
|
export CPPFLAGS="$CPPFLAGS -Wno-c++11-narrowing"
|
|
|
|
}
|
|
|
|
|
2015-06-13 01:03:31 +02:00
|
|
|
termux_step_post_make_install () {
|
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/ldd $TERMUX_PREFIX/bin/ldd
|
2016-12-02 21:54:36 +01:00
|
|
|
cd $TERMUX_PREFIX/bin
|
|
|
|
# Setup symlinks as these are used when building, so used by
|
|
|
|
# system setup in e.g. python, perl and libtool:
|
|
|
|
for b in ar ld nm objdump ranlib readelf strip; do
|
|
|
|
ln -s -f $b $TERMUX_HOST_PLATFORM-$b
|
|
|
|
done
|
2018-03-20 23:10:53 +01:00
|
|
|
ln -sf ld.gold gold
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|