blob: d346130113ee21b7c7f5c53c41b5a5fc5766e442 (
plain)
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
|
kind: autotools
sources:
- kind: git
url: upstream:binutils-tarball
track: binutils-2.25
ref: 5500a97a2ad1735db5b35bc51cfb825c1f4c38df
depends:
- filename: gnu-toolchain/stage1.bst
type: build
- filename: gnu-toolchain/stage2-fhs-dirs.bst
type: runtime
- gnu-toolchain/stage2-linux-api-headers.bst
- gnu-toolchain/stage2-glibc.bst
variables:
prefix: /tools
environment:
PATH: /tools/bin:/usr/bin:/bin:/usr/sbin:/sbin
config:
configure-commands:
- |
export STAGE2_SYSROOT="/"
export CXX="%{target-stage1}-g++ --sysroot=$STAGE2_SYSROOT"
# binutils has its own embedded libtool, which is old and strips out
# `--sysroot`. Work around by modifying the compiler command to
# include the sysroot flag
export CC="%{target-stage1}-gcc --sysroot=$STAGE2_SYSROOT"
./configure --prefix="%{prefix}" --disable-nls --disable-werror \
--build=$(sh config.guess) \
--host=%{target-stage1} \
--target=%{target-stage1}
build-commands:
- |
export STAGE2_SYSROOT="/"
make
strip-commands:
- |
%{stage2-strip-binaries}
|