|
From: kosmirror <kos...@us...> - 2025-09-02 19:15:05
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "A pseudo Operating System for the Dreamcast.".
The branch, master has been updated
via 1bd27cd8e7c8e65d7de3fbb21a02cee305cf6814 (commit)
from 36687707d91a7e99cc2a71b6ffc86f861be5e1d9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1bd27cd8e7c8e65d7de3fbb21a02cee305cf6814
Author: Paul Cercueil <pa...@cr...>
Date: Mon Sep 1 16:40:06 2025 +0200
dc-chain: Remove fake-kos.o from all libgcc.a
When building a multilib toolchain, for instance to support
-m4-single-only and -m4-single, multiple variants of libgcc.a are built.
We need to remove the fake-kos.o object from all of them.
Signed-off-by: Paul Cercueil <pa...@cr...>
-----------------------------------------------------------------------
Summary of changes:
utils/dc-chain/scripts/gcc-pass2.mk | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/utils/dc-chain/scripts/gcc-pass2.mk b/utils/dc-chain/scripts/gcc-pass2.mk
index 6c6750a3..23be6b12 100644
--- a/utils/dc-chain/scripts/gcc-pass2.mk
+++ b/utils/dc-chain/scripts/gcc-pass2.mk
@@ -1,6 +1,9 @@
# Sega Dreamcast Toolchains Maker (dc-chain)
# This file is part of KallistiOS.
+__comma:=,
+__libgcc=$(foreach item,$(addprefix -,$(subst $(__comma), ,$(precision_modes))) "",$(shell $(toolchain_path)/bin/$(target)-gcc $(item) -print-file-name=libgcc.a))
+
$(build_gcc_pass2): build = build-gcc-$(target)-$(gcc_ver)-pass2
$(build_gcc_pass2): logdir
@echo "+++ Building $(src_dir) to $(build) (pass 2)..."
@@ -32,7 +35,7 @@ ifdef enable_ada
endif
endif
$(MAKE) -C $(build) $(install_mode) DESTDIR=$(DESTDIR) $(to_log)
- $(toolchain_path)/bin/$(target)-gcc-ar d \
- $(shell $(toolchain_path)/bin/$(target)-gcc -print-file-name=libgcc.a) \
- fake-kos.o $(to_log)
+ for each in $(__libgcc) ; do \
+ $(toolchain_path)/bin/$(target)-gcc-ar d $$each fake-kos.o $(to_log) ; \
+ done
$(clean_up)
hooks/post-receive
--
A pseudo Operating System for the Dreamcast.
|