mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-13 19:52:20 +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:
parent
db1d539d49
commit
0c40e7c182
1 changed files with 2 additions and 3 deletions
|
@ -42,9 +42,8 @@ probe_shared="'' -G -b -c -shared -Wl,dll"
|
||||||
probe_shared_name="-Wl,-soname= -h"
|
probe_shared_name="-Wl,-soname= -h"
|
||||||
probe_shared_nostart="-nostartfiles"
|
probe_shared_nostart="-nostartfiles"
|
||||||
case `gcc -v 2>&1 | egrep gcc.version` in
|
case `gcc -v 2>&1 | egrep gcc.version` in
|
||||||
*version' '7*) probe_shared_nostart= ;;
|
*version' '[0123456].*) ;;
|
||||||
*version' '8*) probe_shared_nostart= ;;
|
*) probe_shared_nostart= ;; # gcc 7+
|
||||||
*version' '9*) probe_shared_nostart= ;;
|
|
||||||
esac
|
esac
|
||||||
probe_shared_registry='"-update_registry $probe_shared_registry_file"'
|
probe_shared_registry='"-update_registry $probe_shared_registry_file"'
|
||||||
probe_shared_registry_file='registry.ld'
|
probe_shared_registry_file='registry.ld'
|
||||||
|
|
Loading…
Reference in a new issue