From 5304a003ee4bb0c4040c7eb289fa71df3496feb0 Mon Sep 17 00:00:00 2001 From: arved Date: Sun, 13 Feb 2011 15:45:13 +0000 Subject: Add -fstack-protector to CPPFLAGS on i386/8.x to fix build. PR: 152374 Submitted by: sylvio --- net-mgmt/py-yapsnmp/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'net-mgmt/py-yapsnmp') diff --git a/net-mgmt/py-yapsnmp/Makefile b/net-mgmt/py-yapsnmp/Makefile index f3dcec020283..00d9b6c661a6 100644 --- a/net-mgmt/py-yapsnmp/Makefile +++ b/net-mgmt/py-yapsnmp/Makefile @@ -27,8 +27,14 @@ CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${PYTHON_INCLUDED LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" CONFIGURE_ARGS+=--enable-site-packages-prefix=${PREFIX} +.include + +.if (${OSVERSION} >= 800000) && (${ARCH} == "i386") +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -fstack-protector -I${LOCALBASE}/include" +.endif + post-patch: ${REINPLACE_CMD} -e "s,-lsnmp,-lnetsnmp," \ ${WRKSRC}/configure -.include +.include -- cgit