summaryrefslogtreecommitdiff
path: root/strata/build-essential/stage2-gcc-fixed-headers.morph
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2017-11-26 23:39:48 +0000
committerJavier Jardón <jjardon@gnome.org>2017-12-12 15:58:23 +0000
commit7df7f3b427739ff7d69da2ba218da0124822892c (patch)
tree843c75e9bede53862ab101d6a7bcd1da15a33c55 /strata/build-essential/stage2-gcc-fixed-headers.morph
parent7aad5150f69da42b84994c353283db5daf8e967f (diff)
downloaddefinitions-7df7f3b427739ff7d69da2ba218da0124822892c.tar.gz
Remove all .morph files and files from the old format
Diffstat (limited to 'strata/build-essential/stage2-gcc-fixed-headers.morph')
-rw-r--r--strata/build-essential/stage2-gcc-fixed-headers.morph19
1 files changed, 0 insertions, 19 deletions
diff --git a/strata/build-essential/stage2-gcc-fixed-headers.morph b/strata/build-essential/stage2-gcc-fixed-headers.morph
deleted file mode 100644
index 10794872..00000000
--- a/strata/build-essential/stage2-gcc-fixed-headers.morph
+++ /dev/null
@@ -1,19 +0,0 @@
-name: stage2-gcc-fixed-headers
-kind: chunk
-install-commands:
-# Stage 1 GCC's fixincludes process created a limits.h before there was
-# a real limits.h available for the target. This step (taken from Linux
-# Linux From Scratch) creates a better one so that stage 2 GCC can compile.
-#
-# THIS IS A FRAGILE HACK! We need to replace the headers. The only way to
-# overwrite files in a staging area is to install a new chunk.
-# This is undesired behaviour in the long term, as we want to never
-# have overlaps, so this functionality may go away.
-- |
- 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"
-