Skip site navigation (1)Skip section navigation (2)
Date:      22 Nov 2009 18:42:55 -0200
From:      Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        chalpin@cs.wisc.edu
Subject:   ports/140790: [PATCH] mail/crm114: Fix build on systems where GCC stack protection was enabled for userland
Message-ID:  <20091122204255.74682.qmail@exxodus.fedaykin.here>
Resent-Message-ID: <200911222050.nAMKo06S090327@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091122204255.74682.qmail>