summaryrefslogtreecommitdiff
path: root/src/compilers/gcc-13-native.TARGETS
diff options
context:
space:
mode:
Diffstat (limited to 'src/compilers/gcc-13-native.TARGETS')
-rw-r--r--src/compilers/gcc-13-native.TARGETS11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/compilers/gcc-13-native.TARGETS b/src/compilers/gcc-13-native.TARGETS
index 3b79d36..27cdf80 100644
--- a/src/compilers/gcc-13-native.TARGETS
+++ b/src/compilers/gcc-13-native.TARGETS
@@ -152,6 +152,9 @@
, "find . -type f -name '*.so*' -exec sh -c \"strip {} 2>/dev/null\" \\;"
, "find . -type f -name '*.a' -exec sh -c \"strip -g {}\" \\;"
, "find . -type f -name '*.o' -exec sh -c \"strip -g {}\" \\;"
+ , "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"
, "if [ -n \"${LINK_ARGS}\" ]; then"
, " cd ${DESTDIR}/bin"
, " mv gcc gcc.real"
@@ -178,16 +181,16 @@
{ "type": "generic"
, "arguments_config": ["ENV"]
, "deps": ["toolchain"]
- , "cmds": [":"]
- , "outs": ["lib64/libstdc++.so.6"]
+ , "cmds": ["cp -L lib64/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"]
- , "cmds": [":"]
- , "outs": ["lib64/libgcc_s.so.1"]
+ , "cmds": ["cp -L lib64/libgcc_s.so.1 ."]
+ , "outs": ["libgcc_s.so.1"]
, "env": {"type": "var", "name": "ENV", "default": {"type": "empty_map"}}
}
}