1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 11:42:21 +00:00

INIT/make.probe: change for GCC v10 based on official AST repo

In <https://github.com/att/ast/commit/d2771913>, 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.
This commit is contained in:
Martijn Dekker 2020-07-03 00:06:42 +02:00
parent db1d539d49
commit 0c40e7c182

View file

@ -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'