summaryrefslogtreecommitdiff
path: root/src/compilers/gcc-13-musl.TARGETS
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-11-23 18:45:46 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2023-11-29 12:33:24 +0100
commit1c037dcd057024a004233559061f6bf0d4766763 (patch)
treec8ea540243d6d127c2f86f107af87a2538dac74b /src/compilers/gcc-13-musl.TARGETS
parenta2b06c3dca54c086cbd874c9547e281205a4ebc5 (diff)
downloadbootstrappable-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.TARGETS')
-rw-r--r--src/compilers/gcc-13-musl.TARGETS7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/compilers/gcc-13-musl.TARGETS b/src/compilers/gcc-13-musl.TARGETS
index ef226eb..bad2be8 100644
--- a/src/compilers/gcc-13-musl.TARGETS
+++ b/src/compilers/gcc-13-musl.TARGETS
@@ -104,9 +104,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}/"
@@ -149,7 +148,7 @@
{ "type": "generic"
, "arguments_config": ["ENV"]
, "deps": ["toolchain_for_target"]
- , "cmds": ["cp -L lib/libstdc++.so.6 ."]
+ , "cmds": ["cp -L $(./bin/gcc -dumpmachine)/lib/libstdc++.so.6 ."]
, "outs": ["libstdc++.so.6"]
, "env": {"type": "var", "name": "ENV", "default": {"type": "empty_map"}}
}
@@ -157,7 +156,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"}}
}