From 06988b4490772aac209d2938a9cbabd282295bf5 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Fri, 15 Dec 2023 10:43:40 +0100 Subject: gcc-musl: Add libc.so to non-static runlibs --- src/compilers/gcc-13-musl-static.TARGETS | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/compilers/gcc-13-musl-static.TARGETS') diff --git a/src/compilers/gcc-13-musl-static.TARGETS b/src/compilers/gcc-13-musl-static.TARGETS index 0ef5c57..247b1d2 100644 --- a/src/compilers/gcc-13-musl-static.TARGETS +++ b/src/compilers/gcc-13-musl-static.TARGETS @@ -125,6 +125,12 @@ { "type": ["@", "rules", "CC/prebuilt", "library"] , "name": ["libgcc"] , "lib": ["libgcc_s_files"] + , "deps": ["libc"] + } +, "libc": + { "type": ["@", "rules", "CC/prebuilt", "library"] + , "name": ["libc"] + , "lib": ["libc_files"] } , "libgcc_s_files": { "type": "generic" @@ -134,4 +140,12 @@ , "outs": ["libgcc_s.so.1"] , "env": {"type": "var", "name": "ENV", "default": {"type": "empty_map"}} } +, "libc_files": + { "type": "generic" + , "arguments_config": ["ENV"] + , "deps": ["toolchain_for_target"] + , "cmds": ["cp -L $(./bin/gcc -dumpmachine)/lib/libc.so ."] + , "outs": ["libc.so"] + , "env": {"type": "var", "name": "ENV", "default": {"type": "empty_map"}} + } } -- cgit v1.2.3