Date: 22 Nov 2009 18:44:28 -0200 From: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: bf1783@gmail.com Subject: ports/140791: [PATCH] textproc/libtre: Fix build on systems where GCC stack protection was enabled for userland Message-ID: <20091122204428.95324.qmail@exxodus.fedaykin.here> Resent-Message-ID: <200911222050.nAMKo1F5090336@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091122204428.95324.qmail>