termux-packages/packages/binutils/build.sh

23 lines
992 B
Bash
Raw Normal View History

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"
2017-08-07 20:59:09 +02:00
TERMUX_PKG_VERSION=2.29
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/binutils/binutils-${TERMUX_PKG_VERSION}.tar.gz
2017-08-07 20:59:09 +02:00
TERMUX_PKG_SHA256=172e8c89472cf52712fd23a9f14e9bca6182727fb45b0f8f482652a83d5a11b4
2017-03-05 03:09:16 +01:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-werror --with-system-zlib"
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"
# Avoid linking against libfl.so from flex if available:
export LEXLIB=
2015-06-13 01:03:31 +02:00
termux_step_post_make_install () {
cp $TERMUX_PKG_BUILDER_DIR/ldd $TERMUX_PREFIX/bin/ldd
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
2015-06-13 01:03:31 +02:00
}