ports/140790: [PATCH] mail/crm114: 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:01 UTC 2009
>Number: 140790
>Category: ports
>Synopsis: [PATCH] mail/crm114: 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
Port maintainer (chalpin at cs.wisc.edu) is cc'd.
>How-To-Repeat:
>Fix:
--- crm114-20090423.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/mail/crm114/Makefile,v
retrieving revision 1.27
diff -d -u -u -r1.27 Makefile
--- Makefile 13 May 2009 16:03:16 -0000 1.27
+++ Makefile 22 Nov 2009 20:42:03 -0000
@@ -50,6 +50,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_PGO)
MAKE_ARGS+= CFLAGS="${CFLAGS} -fprofile-use" \
LDFLAGS="${LDFLAGS} -fprofile-use"
--- crm114-20090423.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list