Commit | Line | Data |
---|---|---|
f63405a9 | 1 | TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/binutils/ |
59f0d218 | 2 | TERMUX_PKG_DESCRIPTION="Collection of binary tools, the main ones being ld, the GNU linker, and as, the GNU assembler" |
120f5337 | 3 | TERMUX_PKG_VERSION=2.28 |
39dafbf5 | 4 | TERMUX_PKG_REVISION=1 |
722ed12d | 5 | TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/binutils/binutils-${TERMUX_PKG_VERSION}.tar.gz |
120f5337 FF |
6 | TERMUX_PKG_SHA256=cd717966fc761d840d451dbd58d44e1e5b92949d2073d75b73fccb476d772fcf |
7 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-werror --with-system-zlib" | |
59f0d218 FF |
8 | TERMUX_PKG_EXTRA_MAKE_ARGS="tooldir=$TERMUX_PREFIX" |
9 | TERMUX_PKG_RM_AFTER_INSTALL="share/man/man1/windmc.1 share/man/man1/windres.1 bin/ld.bfd" | |
10 | ||
d104e472 FF |
11 | # Avoid linking against libfl.so from flex if available: |
12 | export LEXLIB= | |
13 | ||
59f0d218 FF |
14 | termux_step_post_make_install () { |
15 | cp $TERMUX_PKG_BUILDER_DIR/ldd $TERMUX_PREFIX/bin/ldd | |
f63405a9 FF |
16 | cd $TERMUX_PREFIX/bin |
17 | ||
18 | # Setup symlinks as these are used when building, so used by | |
19 | # system setup in e.g. python, perl and libtool: | |
20 | for b in ar ld nm objdump ranlib readelf strip; do | |
21 | ln -s -f $b $TERMUX_HOST_PLATFORM-$b | |
22 | done | |
59f0d218 | 23 | } |