Do the ctfmerge (= all symbols, not only symbols from one object file) for

KLDs too.

Noticed by:	np
This commit is contained in:
Alexander Leidinger 2010-04-22 09:24:01 +00:00
parent 7ab4cc53fd
commit 69745d3886
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207057

View File

@ -137,6 +137,10 @@ CFLAGS+= -mlongcall -fno-omit-frame-pointer
CFLAGS+= -G0 -fno-pic -mno-abicalls -mlong-calls
.endif
.if defined(DEBUG) || defined(DEBUG_FLAGS)
CTFFLAGS+= -g
.endif
.if defined(FIRMWS)
.if !exists(@)
${KMOD:S/$/.c/}: @
@ -202,6 +206,7 @@ ${KMOD}.kld: ${OBJS}
${FULLPROG}: ${OBJS}
.endif
${LD} ${LDFLAGS} -r -d -o ${.TARGET} ${OBJS}
@[ -z "${CTFMERGE}" -o -n "${NO_CTF}" ] || ${CTFMERGE} ${CTFFLAGS} -o ${.TARGET} ${OBJS}
.if defined(EXPORT_SYMS)
.if ${EXPORT_SYMS} != YES
.if ${EXPORT_SYMS} == NO