From 267979ccbc324ccd5a8fc578f1966c37cf895d81 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 18 Feb 2016 14:24:21 +0000 Subject: 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@ --- gnu/lib/libstdc++-v3/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gnu') 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 -- cgit v1.2.3