--- rts/Makefile.sav	2010-03-08 17:14:26.000000000 -0500
+++ rts/Makefile	2010-03-08 17:14:49.000000000 -0500
@@ -409,7 +409,7 @@
 SRC_HC_OPTS += -I.
 
 # Otherwise the stack-smash handler gets triggered.
-ifeq "$(TargetOS_CPP)" "openbsd"
+ifneq "$(findstring $(TargetOS_CPP), darwin openbsd)" ""
 SRC_HC_OPTS += -optc-fno-stack-protector
 endif
 
