aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/vte3/Makefile
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2014-11-25 20:49:21 +0000
committerKoop Mast <kwm@FreeBSD.org>2014-11-25 20:49:21 +0000
commitf663cce1eb8f808adf9b4529b8418b60947ff99a (patch)
tree1f5b5073ff3dbca2cf02215e96466339dc739b77 /x11-toolkits/vte3/Makefile
parent07995f405258065c6189856b4bc19f984ee02077 (diff)
downloadports-f663cce1eb8f808adf9b4529b8418b60947ff99a.tar.gz
ports-f663cce1eb8f808adf9b4529b8418b60947ff99a.zip
Make sure vte doesn't enabled stack-protector on it own on i386 when
OSVERSION < 1000036 (taken from bsd.ssp.mk). Else it fails to build with: libvte-2.91.so: undefined reference to `__stack_chk_fail_local'. PR: 195267 Submitted by: bar@
Notes
Notes: svn path=/head/; revision=373430
Diffstat (limited to 'x11-toolkits/vte3/Makefile')
-rw-r--r--x11-toolkits/vte3/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/x11-toolkits/vte3/Makefile b/x11-toolkits/vte3/Makefile
index 655f50e10206..775eceb07556 100644
--- a/x11-toolkits/vte3/Makefile
+++ b/x11-toolkits/vte3/Makefile
@@ -49,11 +49,17 @@ PLIST_SUB= VERSION=2.91
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-gnome-pty-helper_gnome-utmp.c
.endif
-.if ${VTE3_SLAVE} != yes
post-patch:
+.if ${VTE3_SLAVE} != yes
@${REINPLACE_CMD} -e 's|-Wno-unused-but-set-variable||g' \
${WRKSRC}/src/Makefile.in
.endif
+# borrowed osversion from bsd.ssp.mk
+.if ${OSVERSION} < 1000036 && ${ARCH} == i386
+ @${REINPLACE_CMD} -e 's|-fstack-protector-strong||g; \
+ s|-fstack-protector||g' \
+ ${WRKSRC}/configure
+.endif
.include <bsd.port.mk>