mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-13 11:42:21 +00:00
make.probe: probe_optimize: remove -O2
Solaris Studio 12.5 cc seems to produce incorrect code at -O2 (a.k.a. -xO2) optimisation level; integer variables initialise at random values, and the behaviour of the shell is so incorrect it can't even run the test scripts. It does not support -Os so that is skipped for that compiler. At -O it works fine. src/cmd/INIT/make.probe: - By default, only try -Os and -O optimisation flags.
This commit is contained in:
parent
7bab9508aa
commit
820bb6a04b
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ probe_lib_all_undef="-all -notall -all -none -Bwhole-archive -Bno-whole-archive
|
|||
probe_lib_multiple="-Wl,-zmuldefs"
|
||||
probe_libdir="shlib lib"
|
||||
probe_nmflags="'' -p -B"
|
||||
probe_optimize="-Os -O2 -O"
|
||||
probe_optimize="-Os -O"
|
||||
probe_pic="-Kpic -KPIC -fpic -fPIC -pic -PIC +z +Z"
|
||||
probe_no_protect="'-fno-stack-protector -fno-stack-protector-all' -GS-"
|
||||
probe_readonly="-R -Krodata -xMerge -Wa,-r"
|
||||
|
|
Loading…
Reference in a new issue