summaryrefslogtreecommitdiff
path: root/stage2-binutils.morph.yaml
blob: 85efd878a19a33a4f0bf869c78e67f95990c1202 (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
name: stage2-binutils
kind: chunk
build-system: autotools

configure-commands:
    - stage2-eglibc-fix-specs

    - |
      export STAGE2_SYSROOT="$(dirname $(pwd))"
      export CPPFLAGS="--sysroot=$STAGE2_SYSROOT"
      export CXX=false
      export LDFLAGS="-Wl,--sysroot=$STAGE2_SYSROOT"
      ./configure --prefix="$PREFIX" --disable-nls --disable-werror \
        --build=$(sh config.guess) \
        --host=$TARGET_STAGE1 \
        --target=$TARGET_STAGE1 \
        --with-lib-path="$PREFIX/lib --with-system-zlib"

build-commands:
    # Nested configure scripts require that we set CPPFLAGS here as well
    # (I don't think we should have to .. . at least in GCC, I think
    # TARGET_CPPFLAGS may be the answer)
    - |
      export STAGE2_SYSROOT="$(dirname $(pwd))"
      export CPPFLAGS="--sysroot=$STAGE2_SYSROOT"
      export LDFLAGS="-Wl,--sysroot=$STAGE2_SYSROOT"
      make