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
ceb4f4b3ee
commit
4db4190111
@ -36,7 +36,7 @@ NO_WERROR=
|
|||||||
.if defined(DEBUG_FLAGS)
|
.if defined(DEBUG_FLAGS)
|
||||||
CFLAGS+= ${DEBUG_FLAGS}
|
CFLAGS+= ${DEBUG_FLAGS}
|
||||||
|
|
||||||
.if ${MK_CTF} != "no" && ${DEBUG_FLAGS:M-g} != ""
|
.if ${MK_CTF} != "no"
|
||||||
CTFFLAGS+= -g
|
CTFFLAGS+= -g
|
||||||
.endif
|
.endif
|
||||||
.else
|
.else
|
||||||
|
@ -128,6 +128,7 @@ __<bsd.own.mk>__:
|
|||||||
|
|
||||||
.if ${MK_CTF} != "no"
|
.if ${MK_CTF} != "no"
|
||||||
CTFCONVERT_CMD= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
|
CTFCONVERT_CMD= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
|
||||||
|
DEBUG_FLAGS+= -g
|
||||||
.elif defined(.PARSEDIR) || (defined(MAKE_VERSION) && ${MAKE_VERSION} >= 5201111300)
|
.elif defined(.PARSEDIR) || (defined(MAKE_VERSION) && ${MAKE_VERSION} >= 5201111300)
|
||||||
CTFCONVERT_CMD=
|
CTFCONVERT_CMD=
|
||||||
.else
|
.else
|
||||||
|
@ -20,7 +20,7 @@ NO_WERROR=
|
|||||||
CFLAGS+=${DEBUG_FLAGS}
|
CFLAGS+=${DEBUG_FLAGS}
|
||||||
CXXFLAGS+=${DEBUG_FLAGS}
|
CXXFLAGS+=${DEBUG_FLAGS}
|
||||||
|
|
||||||
.if ${MK_CTF} != "no" && ${DEBUG_FLAGS:M-g} != ""
|
.if ${MK_CTF} != "no"
|
||||||
CTFFLAGS+= -g
|
CTFFLAGS+= -g
|
||||||
.endif
|
.endif
|
||||||
.endif
|
.endif
|
||||||
|
Loading…
Reference in New Issue
Block a user