summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-07-28 16:19:57 +0000
committerIan Lynagh <igloo@earth.li>2010-07-28 16:19:57 +0000
commit2537fda6092f9dd1599d8246060dbb11778b3639 (patch)
tree14e612175cf86468fab4a4258f923606fdb05554 /rts
parent6a16aa336536e5e425a5dea9e812bdad762749e5 (diff)
downloadhaskell-2537fda6092f9dd1599d8246060dbb11778b3639.tar.gz
Set -fno-stack-protector in extra-gcc-opts; fixes #4206
We were using it only when building the RTS, and only on certain platforms. However, some versions of OS X need the flag, while others don't support it, so we now test for it properly.
Diffstat (limited to 'rts')
-rw-r--r--rts/ghc.mk5
1 files changed, 0 insertions, 5 deletions
diff --git a/rts/ghc.mk b/rts/ghc.mk
index 8b6ecb1ce8..ca68b55a17 100644
--- a/rts/ghc.mk
+++ b/rts/ghc.mk
@@ -252,11 +252,6 @@ rts_CC_OPTS += $(MACOSX_DEPLOYMENT_CC_OPTS)
rts_HC_OPTS += $(addprefix -optc, $(MACOSX_DEPLOYMENT_CC_OPTS))
rts_LD_OPTS += $(addprefix -optl, $(MACOSX_DEPLOYMENT_LD_OPTS))
-# Otherwise the stack-smash handler gets triggered.
-ifneq "$(findstring $(TargetOS_CPP), darwin openbsd)" ""
-rts_HC_OPTS += -optc-fno-stack-protector
-endif
-
# We *want* type-checking of hand-written cmm.
rts_HC_OPTS += -dcmm-lint