This is inconsistent/confusing. Either both bsd.lib.mk and bsd.prog.mk should append -g to CFLAGS/CTFFLAGS, or neither should: Sources based off r285261: $ cd /usr/src $ cd bin/cp $ make __MAKE_CONF=/dev/null SRCCONF=/dev/null MK_DEBUG_FILES=yes -VCFLAGS:M-g -g $ cd ../../lib/libthr $ make __MAKE_CONF=/dev/null SRCCONF=/dev/null MK_DEBUG_FILES=yes -VCFLAGS:M-g
Adding bdrewery as CC (and emaste because of MK_DEBUG_FILES). If I have spare cycles I'll work on this. 17:12 < ngie> bdrewery_wfh: do you want to look at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201445 ? 17:12 < ngie> or should i put the change out for CR/commit it? 17:14 < bdrewery_wfh> I can look but not at the moment 17:23 < ngie> bdrewery_wfh: ok. i'll add you as a CC. just didn't want to conflict with any work you were doing there
This functions as expected: bsd.lib.mk adds -g to SHARED_CFLAGS and the resulting .so file gets a .debug.
(In reply to Ed Maste from comment #2) Yeah, it does make sense. Closing (and thanks for the explanation -- would be nice if there was a comment noting the inconsistency..)