summaryrefslogtreecommitdiff
path: root/chunks/stage2-gcc-fixed-headers.morph
blob: f1675f0225064c2c2f11406c6e903129658c8014 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
name: stage2-gcc-fixed-headers
kind: chunk
repo: upstream:gcc-tarball
ref: dd78b627480ed8d3c135271cd627096ae76fa5fc
install-commands:
- |
  libgcc_dir=$(dirname $($TARGET_STAGE1-gcc -print-libgcc-file-name))
  sysroot="$(dirname "$(pwd)")"
  target_libgcc_dir="${libgcc_dir#$sysroot}"
  mkdir -p "$DESTDIR/$target_libgcc_dir/include-fixed"
  cat "gcc/limitx.h" "gcc/glimits.h" "gcc/limity.h" \
      >"$DESTDIR/$target_libgcc_dir/include-fixed/limits.h"