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:
parent
70b7ffee1b
commit
83c457dc27
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user