summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2012-04-17 11:09:17 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2012-04-17 11:09:17 +0000
commite5980a47c6756c127223ad4a8d913428e7869797 (patch)
treedaef5337e610cb062a9f3c946d112edd82510838 /gnu
parent6ccca186bfb9078100b9b7ddb3f1e42e774bb42d (diff)
Explicitely request -fno-stack-protector on sh when building the unwinder,
for unwind-dw2.c fails to build otherwise.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cc/libgcc/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/usr.bin/cc/libgcc/Makefile b/gnu/usr.bin/cc/libgcc/Makefile
index b3ddfbc13b7..80b56fd2de5 100644
--- a/gnu/usr.bin/cc/libgcc/Makefile
+++ b/gnu/usr.bin/cc/libgcc/Makefile
@@ -1,5 +1,5 @@
# $FreeBSD: src/gnu/lib/libgcc/Makefile,v 1.58.8.1 2009/04/15 03:14:26 kensmith Exp $
-# $OpenBSD: Makefile,v 1.22 2012/04/12 11:28:32 jsg Exp $
+# $OpenBSD: Makefile,v 1.23 2012/04/17 11:09:16 miod Exp $
.include <bsd.own.mk>
@@ -357,6 +357,9 @@ EH_OBJS_T = ${LIB2ADDEHSTATIC:R:S/$/.o/}
EH_OBJS_P = ${LIB2ADDEHSTATIC:R:S/$/.po/}
EH_OBJS_S = ${LIB2ADDEHSHARED:R:S/$/.So/}
EH_CFLAGS = -fexceptions
+.if ${TARGET_ARCH} == "sh"
+EH_CFLAGS+= -fno-stack-protector # necessary for unwind-dw2.c
+.endif
SOBJS += ${EH_OBJS_S}
OBJS += ${EH_OBJS_T}