2023-01-18 02:39:25 +03:00
|
|
|
distributable:
|
|
|
|
url: https://ftp.gnu.org/gnu/binutils/binutils-{{ version.raw }}.tar.xz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
#TODO HTML listing: https://ftp.gnu.org/gnu/binutils/
|
2023-01-28 08:53:41 +03:00
|
|
|
- '2.40'
|
|
|
|
- 2.39
|
2023-01-18 02:39:25 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
gnu.org/bison: '*'
|
|
|
|
gnu.org/texinfo: '*'
|
|
|
|
darwin:
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
linux:
|
|
|
|
gnu.org/gcc: '*'
|
2023-01-28 08:53:41 +03:00
|
|
|
# bootstrap phase 2
|
|
|
|
gnu.org/binutils: '*'
|
2023-01-18 02:39:25 +03:00
|
|
|
script: |
|
|
|
|
./configure --prefix={{ prefix }}
|
|
|
|
make --jobs {{ hw.concurrency }}
|
|
|
|
make install
|
|
|
|
|
|
|
|
test:
|
|
|
|
script: objdump -x $(which objdump) | grep -s $TEST_STRING
|
|
|
|
env:
|
|
|
|
# Representitive output to look for
|
|
|
|
darwin:
|
|
|
|
TEST_STRING: _opendir
|
|
|
|
linux:
|
|
|
|
TEST_STRING: GNU_HASH
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/addr2line
|
|
|
|
- bin/ar
|
|
|
|
- bin/c++filt
|
|
|
|
- bin/elfedit
|
|
|
|
- bin/nm
|
|
|
|
- bin/objcopy
|
|
|
|
- bin/objdump
|
|
|
|
- bin/ranlib
|
|
|
|
- bin/readelf
|
|
|
|
- bin/size
|
|
|
|
- bin/strings
|
|
|
|
- bin/strip
|