ports/140791: [PATCH] textproc/libtre: Fix build on systems where GCC stack protection was enabled for userland
Mario Sergio Fujikawa Ferreira
lioux at FreeBSD.org
Sun Nov 22 20:50:02 UTC 2009
>Number: 140791
>Category: ports
>Synopsis: [PATCH] textproc/libtre: Fix build on systems where GCC stack protection was enabled for userland
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Nov 22 20:50:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Mario Sergio Fujikawa Ferreira
>Release: FreeBSD 8.0-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD exxodus.fedaykin.here 8.0-PRERELEASE FreeBSD 8.0-PRERELEASE #4: Sun Nov 15 10:14:26 BRST 2009
>Description:
- Fix build on systems (FreeBSD 8+) where GCC stack protection (aka
Propolice) was enabled for userland on src/share/mk/bsd.sys.mk
(SVN rev 180012 on 2008-06-25 21:33:28Z by ru)
- For OSVERSION >= 800040, add -fstack-protector to LDFLAGS
>How-To-Repeat:
>Fix:
--- libtre-0.7.6.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/textproc/libtre/Makefile,v
retrieving revision 1.50
diff -d -u -u -r1.50 Makefile
--- Makefile 2 Aug 2009 19:35:48 -0000 1.50
+++ Makefile 22 Nov 2009 20:43:35 -0000
@@ -33,6 +33,13 @@
.include <bsd.port.pre.mk>
+# Around the time GCC stack protection (aka Propolice) for userland
+# was enabled on src/share/mk/bsd.sys.mk
+# SVN rev 180012 on 2008-06-25 21:33:28Z by ru
+.if ${OSVERSION} >= 800040
+LDFLAGS+= -fstack-protector
+.endif
+
.if defined(WITH_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
--- libtre-0.7.6.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list