[Bug 201445] bsd.prog.mk explicitly spams CFLAGS with -g if MK_DEBUG_FILES!= no, but bsd.lib.mk doesn't

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 9 21:57:13 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201445

            Bug ID: 201445
           Summary: bsd.prog.mk explicitly spams CFLAGS with -g if
                    MK_DEBUG_FILES!= no, but bsd.lib.mk doesn't
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: ngie at FreeBSD.org

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

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list