summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2016-02-18 14:24:21 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2016-02-18 14:24:21 +0000
commit267979ccbc324ccd5a8fc578f1966c37cf895d81 (patch)
tree6ae7d1822cbc32a1a060bb91d37735cfc2afb28d /gnu
parent8b722979066310ceffc9b800c310a1e54ae9aa87 (diff)
Disable the stack protector when building libstdc++ on arm. Fixes test
cases from dcoppa@ where incorrect behaviour was trigged when using std::ifstream and linking libpthread. Further investigation and patch from miod. ok deraadt@
Diffstat (limited to 'gnu')
-rw-r--r--gnu/lib/libstdc++-v3/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/lib/libstdc++-v3/Makefile b/gnu/lib/libstdc++-v3/Makefile
index de544bb2cea..8222d7abb52 100644
--- a/gnu/lib/libstdc++-v3/Makefile
+++ b/gnu/lib/libstdc++-v3/Makefile
@@ -1,5 +1,5 @@
# $FreeBSD: src/gnu/lib/libstdc++/Makefile,v 1.63.2.1 2009/08/03 08:13:06 kensmith Exp $
-# $OpenBSD: Makefile,v 1.8 2015/05/14 02:56:01 jsg Exp $
+# $OpenBSD: Makefile,v 1.9 2016/02/18 14:24:20 jsg Exp $
.include "${.CURDIR}/Makefile.common"
@@ -17,6 +17,9 @@ CFLAGS+= -frandom-seed=RepeatabilityConsideredGood
CXXFLAGS+= -frandom-seed=RepeatabilityConsideredGood
CXXFLAGS+= -fno-implicit-templates -ffunction-sections -fdata-sections \
-Wno-deprecated
+.if ${MACHINE_ARCH} == "arm"
+CXXFLAGS+= -fno-stack-protector
+.endif
DPADD= ${LIBM}
LDADD= -lm