On Fri, 3 Feb 2017 21:48:18 +0000 Ken Moffat <[email protected]> wrote:
> 'm not sure if gcc-6.3 is weirder than I expected, or if I'm slowly > spreading my own weirdness into the things I touch ;-) GNU Tools build -g -O2 by default. With gcc, the later flags take precedence. So if using CFLAGS and the package overrides CFLAGS so you get -O3 -g -O2 -g then -O2 takes precedence. It is discussed clearly in the optimization documentation of GCC. So with what I see, is that the CFLAGS are taking place after the defaults which is what I'm concerned about. CFLAGS should be used after the defaults to override them as -g -O and -s are very dependent of where they are in the command line regarding FLAG variables. Sincerely, William Harrington -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
