$NetBSD: patch-ab,v 1.8 2007/12/30 17:12:44 joerg Exp $ --- Makefile.target.orig 2007-02-05 23:01:54 +0000 +++ Makefile.target @@ -99,6 +99,10 @@ endif # We require -O2 to avoid the stack setup prologue in EXIT_TB OP_CFLAGS := -Wall -O2 -g -fno-strict-aliasing +ifdef STACK_PROTECTOR_PRESENT +OP_CFLAGS += -fno-stack-protector +endif + # cc-option # Usage: OP_CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0)