summaryrefslogtreecommitdiff
path: root/stage2-zlib.morph.yaml
blob: c09e648cd5e3591ddbba58d08e0dafe0191d3d1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: stage2-zlib
kind: chunk
max-jobs: '1'

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

    # ZLib's configure is not a standard autoconf configure script
    - |
      export STAGE2_SYSROOT="$(dirname $(pwd))"
      export CC="$TARGET_STAGE1-gcc --sysroot=$STAGE2_SYSROOT"
      export CHOST=$TARGET_STAGE1
      export CXX=false
      export LDSHARED="$TARGET_STAGE1-gcc -Wl,--sysroot=$STAGE2_SYSROOT"
      ./configure --prefix="$PREFIX"

build-commands:
    - |
      export STAGE2_SYSROOT="$(dirname $(pwd))"
      make

install-commands:
    - make DESTDIR="$DESTDIR" install