Unconditionally add `-fno-omit-frame-pointer' to CFLAGS when building

modules on the amd64 platform. Without this, ddb stack traces cannot
follow module function calls, which makes debugging very difficult.
This commit is contained in:
Ian Dowse 2004-08-29 02:00:50 +00:00
parent 70b7ffee1b
commit 83c457dc27

View File

@ -126,6 +126,9 @@ CFLAGS+= -fno-common
LDFLAGS+= -d -warn-common
CFLAGS+= ${DEBUG_FLAGS}
.if ${MACHINE_ARCH} == amd64
CFLAGS+= -fno-omit-frame-pointer
.endif
OBJS+= ${SRCS:N*.h:R:S/$/.o/g}