summaryrefslogtreecommitdiff
path: root/src/compilers/gcc-13-musl.TARGETS
diff options
context:
space:
mode:
Diffstat (limited to 'src/compilers/gcc-13-musl.TARGETS')
-rw-r--r--src/compilers/gcc-13-musl.TARGETS21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/compilers/gcc-13-musl.TARGETS b/src/compilers/gcc-13-musl.TARGETS
index bad2be8..87dbe4c 100644
--- a/src/compilers/gcc-13-musl.TARGETS
+++ b/src/compilers/gcc-13-musl.TARGETS
@@ -56,9 +56,20 @@
]
, "out_dirs": ["."]
}
+, "strip_for_host":
+ { "type": "configure"
+ , "arguments_config": ["ARCH"]
+ , "config":
+ { "type": "singleton_map"
+ , "key": "TARGET_ARCH"
+ , "value": {"type": "var", "name": "ARCH"}
+ }
+ , "target": ["@", "binutils", "", "multi-target strip"]
+ }
, "gcc-musl":
{ "type": ["@", "rules", "CC/foreign/shell", "data"]
, "project": ["combined_patched_sources"]
+ , "localbase": ["strip_for_host"]
, "arguments_config": ["BUILD_ARCH"]
, "cmds":
{ "type": "let*"
@@ -98,11 +109,11 @@
, "${MAKE} -j${NJOBS} TARGET=${TARGET} >build.log 2>&1 || (cat build.log && exit 1)"
, "${MAKE} -j${NJOBS} TARGET=${TARGET} OUTPUT= DESTDIR=${DESTDIR} install >>build.log 2>&1 || (cat build.log && exit 1)"
, "cd ${DESTDIR}"
- , "TARGET_STRIP=./bin/${TARGET}-strip"
- , "find ./bin/ ./${TARGET}/bin/ ./libexec/gcc/ -type f -exec sh -c \"strip {} 2>/dev/null\" \\;"
- , "find . -type f -name '*.so*' -exec sh -c \"${TARGET_STRIP} {} 2>/dev/null\" \\;"
- , "find . -type f -name '*.a' -exec sh -c \"${TARGET_STRIP} -g {}\" \\;"
- , "find . -type f -name '*.o' -exec sh -c \"${TARGET_STRIP} -g {}\" \\;"
+ , "STRIP=${LOCALBASE}/bin/strip"
+ , "find ./bin/ ./${TARGET}/bin/ ./libexec/gcc/ -type f -exec sh -c \"${STRIP} {} 2>/dev/null\" \\;"
+ , "find . -type f -name '*.so*' -exec sh -c \"${STRIP} {} 2>/dev/null\" \\;"
+ , "find . -type f -name '*.a' -exec sh -c \"${STRIP} -g {} 2>/dev/null\" \\;"
+ , "find . -type f -name '*.o' -exec sh -c \"${STRIP} -g {} 2>/dev/null\" \\;"
, "for f in $(ls ./bin/${TARGET}-*); do"
, " ln -s $(basename $f) $(echo $f | sed 's|/'${TARGET}-'|/|g')"
, "done"