diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-11-23 18:45:46 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-11-29 12:33:24 +0100 |
commit | 1c037dcd057024a004233559061f6bf0d4766763 (patch) | |
tree | c8ea540243d6d127c2f86f107af87a2538dac74b /src/compilers/gcc-13-musl-static.TARGETS | |
parent | a2b06c3dca54c086cbd874c9547e281205a4ebc5 (diff) | |
download | bootstrappable-toolchain-1c037dcd057024a004233559061f6bf0d4766763.tar.gz |
Remove unnecessary copies
... now that we retain (non-upwards) symlinks, make use of
them.
Diffstat (limited to 'src/compilers/gcc-13-musl-static.TARGETS')
-rw-r--r-- | src/compilers/gcc-13-musl-static.TARGETS | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compilers/gcc-13-musl-static.TARGETS b/src/compilers/gcc-13-musl-static.TARGETS index 109ec85..4193ae8 100644 --- a/src/compilers/gcc-13-musl-static.TARGETS +++ b/src/compilers/gcc-13-musl-static.TARGETS @@ -78,9 +78,8 @@ , "find . -type f -name '*.a' -exec sh -c \"${TARGET_STRIP} -g {}\" \\;" , "find . -type f -name '*.o' -exec sh -c \"${TARGET_STRIP} -g {}\" \\;" , "for f in $(ls ./bin/${TARGET}-*); do" - , " cp -l $f $(echo $f | sed 's|/'${TARGET}-'|/|g')" + , " ln -s $(basename $f) $(echo $f | sed 's|/'${TARGET}-'|/|g')" , "done" - , "cp -rl ./${TARGET}/lib/. ./lib/." , "find . -type l -exec sh -c 'expr match \"$(readlink {})\" \"/\" >/dev/null' \\; -delete" , "GCC_LIBDIR=\"lib/gcc/$(./bin/gcc -dumpmachine)/$(./bin/gcc -dumpfullversion -dumpversion)\"" , "mv ${GCC_LIBDIR}/include-fixed ${TMPDIR}/" @@ -117,7 +116,7 @@ { "type": "generic" , "arguments_config": ["ENV"] , "deps": ["toolchain_for_target"] - , "cmds": ["cp -L lib/libgcc_s.so.1 ."] + , "cmds": ["cp -L $(./bin/gcc -dumpmachine)/lib/libgcc_s.so.1 ."] , "outs": ["libgcc_s.so.1"] , "env": {"type": "var", "name": "ENV", "default": {"type": "empty_map"}} } |