diff options
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"}} } |