diff options
Diffstat (limited to 'cc/linker.go')
-rw-r--r-- | cc/linker.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/linker.go b/cc/linker.go index b279c0654..e063e441b 100644 --- a/cc/linker.go +++ b/cc/linker.go @@ -228,10 +228,10 @@ func (linker *baseLinker) linkerDeps(ctx DepsContext, deps Deps) Deps { // libclang_rt.builtins, libgcc and libatomic have to be last on the command line if !Bool(linker.Properties.No_libcrt) { deps.LateStaticLibs = append(deps.LateStaticLibs, config.BuiltinsRuntimeLibrary(ctx.toolchain())) - } - - deps.LateStaticLibs = append(deps.LateStaticLibs, "libatomic") - if !Bool(linker.Properties.No_libgcc) { + deps.LateStaticLibs = append(deps.LateStaticLibs, "libatomic") + deps.LateStaticLibs = append(deps.LateStaticLibs, "libgcc_stripped") + } else if !Bool(linker.Properties.No_libgcc) { + deps.LateStaticLibs = append(deps.LateStaticLibs, "libatomic") deps.LateStaticLibs = append(deps.LateStaticLibs, "libgcc") } |