summaryrefslogtreecommitdiff
path: root/chunks/stage2-gcc-fixed-headers.morph
diff options
context:
space:
mode:
Diffstat (limited to 'chunks/stage2-gcc-fixed-headers.morph')
-rw-r--r--chunks/stage2-gcc-fixed-headers.morph12
1 files changed, 12 insertions, 0 deletions
diff --git a/chunks/stage2-gcc-fixed-headers.morph b/chunks/stage2-gcc-fixed-headers.morph
new file mode 100644
index 00000000..f1675f02
--- /dev/null
+++ b/chunks/stage2-gcc-fixed-headers.morph
@@ -0,0 +1,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"