summaryrefslogtreecommitdiff
path: root/strata/armv7lhf-cross-toolchain/armv7lhf-cross-libstdc++.morph
blob: b4b0e735e43329b54a9b44dc6f427721de93cb0a (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
name: armv7lhf-cross-libstdc++
kind: chunk
configure-commands:
- mkdir o
- |
  export MORPH_ARCH=armv7lhf
  export TARGET=armv7lhf-baserock-linux-gnueabi

  # -fPIC must be given, otherwise it will not be possible to create
  # shared libraries linked to libstdc++
  export CPPFLAGS="-fPIC"
  cd o && ../libstdc++-v3/configure                           \
            --build=$(sh ../config.guess)                     \
            --host=$(sh ../config.guess)                      \
            --target="$TARGET"                                \
            --prefix="$PREFIX"                                \
            --disable-nls                                     \
            --disable-shared                                  \
            --disable-multilib                                \
    `# [1]` --with-sysroot
build-commands:
- cd o && make
install-commands:
- cd o && make DESTDIR="$DESTDIR" install