|
root / devel / binutils
binutils Plain Text 59 lines 1.3 KB
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
# Build script for GNU Binutils

set -e
cd "$SRCDIR"

export PATH="/usr/gnu/bin:$PATH"
export CC="gcc -m64"
export CXX="g++ -m64"
export CFLAGS="-m64 -O2"
export CXXFLAGS="-m64 -O2"
export LDFLAGS="-m64 $LDFLAGS"

# Build in separate directory
mkdir -p build
cd build

../configure \
    --prefix=$PREFIX \
    --libdir=$PREFIX/lib \
    --enable-shared \
    --enable-64-bit-bfd \
    --enable-plugins \
    --enable-threads \
    --disable-werror \
    --with-system-zlib \
    --target=$BUILD_TRIPLE

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# GNU Binutils - Collection of binary tools
# https://www.gnu.org/software/binutils/

[package]
name = "binutils"
version = "2.43.1"
release = 1
description = "GNU assembler, linker and binary utilities"
url = "https://www.gnu.org/software/binutils/"
license = "GPL-3.0-or-later"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["zlib"]
build = ["zlib"]

[[source]]
file = "binutils-2.43.1.tar.xz"
urls = [
    "https://ftpmirror.gnu.org/binutils/binutils-2.43.1.tar.xz",
    "https://ftp.gnu.org/gnu/binutils/binutils-2.43.1.tar.xz",
    "https://mirrors.kernel.org/gnu/binutils/binutils-2.43.1.tar.xz"
]
checksum = "13f74202a3c4c51118b797a39ea4200571f4c46be34a35e5cff387a6d6c24e2d"

[build]
parallel = true