diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-10-02 10:55:23 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-10-02 10:55:23 +0100 |
commit | 6d4a0ec6caa5a1f1f1a73a7a8bd061889cf06299 (patch) | |
tree | 6a0928e1aadf2527e16d2ead1a571bfa7da19c71 /strata/build-essential/stage2-gcc-fixed-headers.morph | |
parent | d107a96317a05ec3238ff7bce94cd6cbf12398bf (diff) | |
parent | e9dbfdc623101442370d51525e8cdbe3867eab02 (diff) | |
download | definitions-6d4a0ec6caa5a1f1f1a73a7a8bd061889cf06299.tar.gz |
Merge branch 'baserock/sam/build-essential-comments'
Reviewed-By: Pedro Alvarez <pedro.alvarez@codethink.co.uk>
Reviewed-By: Richard Maw <richard.maw@codethink.co.uk>
Diffstat (limited to 'strata/build-essential/stage2-gcc-fixed-headers.morph')
-rw-r--r-- | strata/build-essential/stage2-gcc-fixed-headers.morph | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/strata/build-essential/stage2-gcc-fixed-headers.morph b/strata/build-essential/stage2-gcc-fixed-headers.morph index 2c4741ee..10794872 100644 --- a/strata/build-essential/stage2-gcc-fixed-headers.morph +++ b/strata/build-essential/stage2-gcc-fixed-headers.morph @@ -1,6 +1,14 @@ 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)")" @@ -8,3 +16,4 @@ install-commands: 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" + |