summaryrefslogtreecommitdiff
path: root/src/compilers/gcc-13-musl-static.TARGETS
diff options
context:
space:
mode:
Diffstat (limited to 'src/compilers/gcc-13-musl-static.TARGETS')
-rw-r--r--src/compilers/gcc-13-musl-static.TARGETS9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/compilers/gcc-13-musl-static.TARGETS b/src/compilers/gcc-13-musl-static.TARGETS
index d7cefea..109ec85 100644
--- a/src/compilers/gcc-13-musl-static.TARGETS
+++ b/src/compilers/gcc-13-musl-static.TARGETS
@@ -81,7 +81,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": ["."]
@@ -114,8 +117,8 @@
{ "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"}}
}
}