Automatically build with debug symbols when building with WITH_CTF.
Otherwise there's nothing for ctfconvert to do, and it ends up emitting an error for each object file. Also remove some redundant checks from bsd.prog.mk and bsd.lib.mk. Differential Revision: https://reviews.freebsd.org/D1111 Reviewed by: imp
This commit is contained in:
parent
6276797fcd
commit
59a9e2ca26
@ -36,7 +36,7 @@ NO_WERROR=
|
||||
.if defined(DEBUG_FLAGS)
|
||||
CFLAGS+= ${DEBUG_FLAGS}
|
||||
|
||||
.if ${MK_CTF} != "no" && ${DEBUG_FLAGS:M-g} != ""
|
||||
.if ${MK_CTF} != "no"
|
||||
CTFFLAGS+= -g
|
||||
.endif
|
||||
.else
|
||||
|
@ -128,6 +128,7 @@ __<bsd.own.mk>__:
|
||||
|
||||
.if ${MK_CTF} != "no"
|
||||
CTFCONVERT_CMD= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
|
||||
DEBUG_FLAGS+= -g
|
||||
.elif defined(.PARSEDIR) || (defined(MAKE_VERSION) && ${MAKE_VERSION} >= 5201111300)
|
||||
CTFCONVERT_CMD=
|
||||
.else
|
||||
|
@ -20,7 +20,7 @@ NO_WERROR=
|
||||
CFLAGS+=${DEBUG_FLAGS}
|
||||
CXXFLAGS+=${DEBUG_FLAGS}
|
||||
|
||||
.if ${MK_CTF} != "no" && ${DEBUG_FLAGS:M-g} != ""
|
||||
.if ${MK_CTF} != "no"
|
||||
CTFFLAGS+= -g
|
||||
.endif
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user