When trying to rebuild libphobos with -g3 -O0 for better debugging, I noticed that GDCFLAGS weren't passed down as expected. It turned out that they are missing from AM_MAKEFLAGS. After I fixed this, the only file still compiled with -g -O2 was libdruntime/core/threadasm.S, so I added CCASFLAGS, too. Tested on i386-pc-solaris2.11. Ok for mainline? Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University 2018-12-06 Rainer Orth * Makefile.am (AM_MAKEFLAGS): Pass CCASFLAGS, GDCFLAGS. * Makefile.in: Regenerate.