--- a/src/runtime/Config.x86-netbsd
+++ b/src/runtime/Config.x86-netbsd
@@ -15,4 +15,4 @@
 OS_SRC += undefineds.c
 LINKFLAGS += -dynamic -export-dynamic
 
-CFLAGS =  -g -Wall -O2
+CFLAGS = -g -Wall -O2 -fno-omit-frame-pointer