From 0c40e7c182d445fb3ad0c98539a2edf6d2d436a3 Mon Sep 17 00:00:00 2001 From: Martijn Dekker Date: Fri, 3 Jul 2020 00:06:42 +0200 Subject: [PATCH] INIT/make.probe: change for GCC v10 based on official AST repo In , GCC version 10 was specifically special-cased for skipping the -nostartfiles flag along with versions 7, 8, and 9. It seems more future-proof to specifically include it for versions up to 6 and remove it for any version 7 and up. src/cmd/INIT/make.probe: - Remove the -nostartfiles for all version of gcc > 7. --- src/cmd/INIT/make.probe | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cmd/INIT/make.probe b/src/cmd/INIT/make.probe index 10f0fbc8c..80a8ee7ac 100644 --- a/src/cmd/INIT/make.probe +++ b/src/cmd/INIT/make.probe @@ -42,9 +42,8 @@ probe_shared="'' -G -b -c -shared -Wl,dll" probe_shared_name="-Wl,-soname= -h" probe_shared_nostart="-nostartfiles" case `gcc -v 2>&1 | egrep gcc.version` in -*version' '7*) probe_shared_nostart= ;; -*version' '8*) probe_shared_nostart= ;; -*version' '9*) probe_shared_nostart= ;; +*version' '[0123456].*) ;; +*) probe_shared_nostart= ;; # gcc 7+ esac probe_shared_registry='"-update_registry $probe_shared_registry_file"' probe_shared_registry_file='registry.ld'