summaryrefslogtreecommitdiff
path: root/strata/build-essential/stage2-libstdc++.morph
blob: b747f22b76159d024fe2aced97c2174336f57502 (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
name: stage2-libstdc++
kind: chunk
configure-commands:
- mkdir o
- |
  export STAGE2_SYSROOT="$(dirname $(pwd))"
  # -fPIC must be given, otherwise it will not be possible to create
  # shared libraries linked to libstdc++
  export CPPFLAGS="--sysroot=$STAGE2_SYSROOT -fPIC"
  export LDFLAGS="--sysroot=$STAGE2_SYSROOT"
  cd o && ../libstdc++-v3/configure                           \
            --build=$(sh ../config.guess)                     \
            --host="$TARGET_STAGE1"                           \
            --target="$TARGET_STAGE1"                         \
            --prefix="$PREFIX"                                \
            --disable-nls                                     \
            --disable-shared                                  \
            --disable-multilib                                \
    `# [1]` --disable-libstdcxx-threads                       \
    `# [2]` --disable-libstdcxx-pch                           \
    `# [3]` --with-gxx-include-dir=/tools/"$TARGET_STAGE1"/include/c++/4.9.2
build-commands:
- cd o && make
install-commands:
- cd o && make DESTDIR="$DESTDIR" install