Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fixes a build issue on pre-10.x FreeBSD systems, where MK_CTF is not defined (by /usr/share/mk/bsd.own.mk) yet.
Roman Naumann committed 12 years ago
commit e7a780315a23ec4b7ec06339aced860bf7cb8114
parent 5c91b5f
1 file changed +2 -2
modified tests/bsd.tests.mk
@@ -25,7 +25,7 @@ NO_WERROR=
CFLAGS+=${DEBUG_FLAGS}
CXXFLAGS+=${DEBUG_FLAGS}

-
.  if ${MK_CTF} != "no" && ${DEBUG_FLAGS:M-g} != ""
+
.  if defined(MK_CTF) && ${MK_CTF} != "no" && ${DEBUG_FLAGS:M-g} != ""
CTFFLAGS+= -g
.  endif
.endif
@@ -98,7 +98,7 @@ ${_test}: ${${_test}_OBJS}
.    else
	${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${${_test}_OBJS} ${LDADD} ${LATF_C}
.    endif
-
.    if ${MK_CTF} != "no"
+
.    if defined(MK_CTF) && ${MK_CTF} != "no"
	${CTFMERGE} ${CTFFLAGS} -o ${.TARGET} ${${_test}_OBJS}
.    endif
.  endif			# defined(${_test}_OBJS)