blob: 5f0b124aaf54ab0fc7ecf4c1a159c204e14c43f6 (
plain) (
blame)
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
|
#!/bin/bash
disable_base=1
name=binutils
version=2.34
revision=0
sources=(
"https://ftp.gnu.org/gnu/${name}/${name}-${version}.tar.gz"
)
depends=("gcc")
src=${name}-${version}
blddir=${src}_build
function prepare() {
set -x
tar xf ${name}-${version}.tar.gz
mkdir -p ${blddir}
cd "${blddir}"
}
function build() {
../${src}/configure \
--prefix=${_prefix} \
--libdir=${_prefix}/lib \
--with-lib-path=${_prefix}/lib:${build_runtime}/lib:/lib64:/usr/lib64:/usr/local/lib64 \
--target=x86_64-pc-linux-gnu \
--enable-shared \
--enable-lto \
--enable-ld=default \
--enable-plugins \
--enable-threads \
--disable-static \
--disable-multilib \
--with-system-zlib \
--with-sysroot=/ \
--with-tune=generic
make -j${_maxjobs}
}
function package() {
make install-strip DESTDIR="${_pkgdir}"
}
|