diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-08-31 17:13:41 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-08-31 17:16:39 +0000 |
commit | 0126fa578c466d1ded28d7e7c04e3743431d4571 (patch) | |
tree | e072cbfc6ac60f4d324104b8d569977963e96170 /elements/gnu-toolchain/stage2-glibc.bst | |
parent | da48508a880dca2faed2b2c1a23f2de3535b3223 (diff) | |
download | definitions-0126fa578c466d1ded28d7e7c04e3743431d4571.tar.gz |
gnu-toolchain: Fix debug stripping for cross-builds of stage2
The stage2 elements were all using the default strip-commands which
don't take into account the fact that we might be cross-compiling.
An `objcopy` build for one architecture will ignore binaries for
other architectures that it doesn't understand, so in practice no
stripping was taking place for the stage2 components when we were
doing cross-builds.
With this change, a stage2 sysroot containing just the 'runtime' and
'devel' domains has gone from 889MB to 306MB.
Diffstat (limited to 'elements/gnu-toolchain/stage2-glibc.bst')
-rw-r--r-- | elements/gnu-toolchain/stage2-glibc.bst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/elements/gnu-toolchain/stage2-glibc.bst b/elements/gnu-toolchain/stage2-glibc.bst index 8c75e788..fd2c9b88 100644 --- a/elements/gnu-toolchain/stage2-glibc.bst +++ b/elements/gnu-toolchain/stage2-glibc.bst @@ -129,3 +129,7 @@ config: [ -z $loader ] && ( echo "Bug in stage2-glibc ld.so symlinks" ; exit 1 ) ln -s "%{prefix}/lib/$loader" "%{install-root}/lib/$loader" esac + + strip-commands: + - | + %{stage2-strip-binaries} |