From a2b06c3dca54c086cbd874c9547e281205a4ebc5 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Wed, 22 Nov 2023 17:19:57 +0100 Subject: Update to latest rules --- src/compilers/gcc-13-musl.TARGETS | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/compilers/gcc-13-musl.TARGETS') diff --git a/src/compilers/gcc-13-musl.TARGETS b/src/compilers/gcc-13-musl.TARGETS index 90d7987..ef226eb 100644 --- a/src/compilers/gcc-13-musl.TARGETS +++ b/src/compilers/gcc-13-musl.TARGETS @@ -107,7 +107,10 @@ , " cp -l $f $(echo $f | sed 's|/'${TARGET}-'|/|g')" , "done" , "cp -rl ./${TARGET}/lib/. ./lib/." - , "find . -type l ! -exec test -e {} \\; -delete" + , "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}/" + , "cp -rL ${TMPDIR}/include-fixed ${GCC_LIBDIR}/. # resolve symlinks" ] } , "out_dirs": ["."] @@ -146,16 +149,16 @@ { "type": "generic" , "arguments_config": ["ENV"] , "deps": ["toolchain_for_target"] - , "cmds": [":"] - , "outs": ["lib/libstdc++.so.6"] + , "cmds": ["cp -L lib/libstdc++.so.6 ."] + , "outs": ["libstdc++.so.6"] , "env": {"type": "var", "name": "ENV", "default": {"type": "empty_map"}} } , "libgcc_s_files": { "type": "generic" , "arguments_config": ["ENV"] , "deps": ["toolchain_for_target"] - , "cmds": [":"] - , "outs": ["lib/libgcc_s.so.1"] + , "cmds": ["cp -L lib/libgcc_s.so.1 ."] + , "outs": ["libgcc_s.so.1"] , "env": {"type": "var", "name": "ENV", "default": {"type": "empty_map"}} } } -- cgit v1.2.3