Add -fstack-protector to CPPFLAGS on i386/8.x to fix build.
PR: 152374 Submitted by: sylvio
This commit is contained in:
parent
1dfe04ceb1
commit
5cca1772e3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=269081
1 changed files with 7 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue