diff options
author | arved <arved@FreeBSD.org> | 2011-02-13 23:45:13 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2011-02-13 23:45:13 +0800 |
commit | 5304a003ee4bb0c4040c7eb289fa71df3496feb0 (patch) | |
tree | ca2ca5795f165e3bf7aea9ff5d951f87a84938cb /net-mgmt/py-yapsnmp | |
parent | 8d2166baa42085f9bcc76c1b939b87182fbd3de1 (diff) | |
download | freebsd-ports-gnome-5304a003ee4bb0c4040c7eb289fa71df3496feb0.tar.gz freebsd-ports-gnome-5304a003ee4bb0c4040c7eb289fa71df3496feb0.tar.zst freebsd-ports-gnome-5304a003ee4bb0c4040c7eb289fa71df3496feb0.zip |
Add -fstack-protector to CPPFLAGS on i386/8.x to fix build.
PR: 152374
Submitted by: sylvio
Diffstat (limited to 'net-mgmt/py-yapsnmp')
-rw-r--r-- | net-mgmt/py-yapsnmp/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
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 <bsd.port.pre.mk> + +.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 <bsd.port.mk> +.include <bsd.port.post.mk> |