X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FMakefile;h=67201cded58ee9f97784d9b48406c2312a3591dc;hb=5a2769f0273dd389977e8283375e7920d183bdd4;hp=2319788d6567758c581ebcc383c23a1c917d08ee;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1;p=ghc-hetmet.git diff --git a/rts/Makefile b/rts/Makefile index 2319788..67201cd 100644 --- a/rts/Makefile +++ b/rts/Makefile @@ -328,6 +328,11 @@ else PrimOps_HC_OPTS += -\#include posix/Itimer.h endif +# Otherwise the stack-smash handler gets triggered. +ifeq "$(TargetOS_CPP)" "openbsd" +SRC_HC_OPTS += -optc-fno-stack-protector +endif + # -O3 helps unroll some loops (especially in copy() with a constant argument). # -fno-strict-aliasing is a hack because we often mix StgPtr and StgClosure pointers # to the same object, and gcc will assume these don't alias. eg. it happens in