From 83c457dc273751099190455932afe3cfe9053c78 Mon Sep 17 00:00:00 2001 From: Ian Dowse Date: Sun, 29 Aug 2004 02:00:50 +0000 Subject: [PATCH] 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. --- sys/conf/kmod.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 7fd40a7a28ba..3f76d3e4c968 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -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}