mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
For OSVERSION >= 800040, add -fstack-protector to LDFLAGS
PR: ports/148439 Submitted by: Eric Cables <ecables@gmail.com>
This commit is contained in:
parent
36f5a5f0f3
commit
867f5573f8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=266719
@ -30,6 +30,12 @@ USE_MYSQL= YES
|
||||
USE_OPENSSL= YES
|
||||
USE_AUTOTOOLS= libtool
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 800040
|
||||
LDFLAGS+= -fstack-protector
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} 's,#define\ *DEFAULT_CONF_FILE .*,#define DEFAULT_CONF_FILE "${PREFIX}/etc/spine.conf",' ${WRKSRC}/spine.h
|
||||
|
||||
@ -43,4 +49,4 @@ do-install:
|
||||
@[ -e ${PREFIX}/etc/spine.conf ] || \
|
||||
${INSTALL_DATA} ${EXAMPLESDIR}/spine.conf ${PREFIX}/etc/spine.conf
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user