git: d10424ba993b - main - lang/gcc11-devel: Mark PIE_UNSAFE if a BOOTSTRAP option is enabled

From: Lorenzo Salvadore <salvadore_at_FreeBSD.org>
Date: Sun, 22 Jan 2023 09:10:33 UTC
The branch main has been updated by salvadore:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d10424ba993b72ecfb07b1199b8015a4991a2a86

commit d10424ba993b72ecfb07b1199b8015a4991a2a86
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2023-01-21 21:00:41 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2023-01-22 09:09:57 +0000

    lang/gcc11-devel: Mark PIE_UNSAFE if a BOOTSTRAP option is enabled
    
    Building the port with WITH_PIE fails if STANDARD_BOOTSTRAP or
    LTO_BOOTSTRAP option is enabled.
    
    Mark PIE_UNSAFE when such an option is enabled until a better solution
    is found.
    
    PR:             268901
    Reported by:    netchild
---
 lang/gcc11-devel/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lang/gcc11-devel/Makefile b/lang/gcc11-devel/Makefile
index 57ce4cc74769..87f2a744d66c 100644
--- a/lang/gcc11-devel/Makefile
+++ b/lang/gcc11-devel/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	gcc
 PORTVERSION=	11.3.1.s20230120
+PORTREVISION=	1
 CATEGORIES=	lang
 MASTER_SITES=	GCC/snapshots/${DIST_VERSION}
 PKGNAMESUFFIX=	${SUFFIX}-devel
@@ -86,9 +87,11 @@ CONFIGURE_ARGS+=--disable-bootstrap
 .elif ${PORT_OPTIONS:MLTO_BOOTSTRAP}
 CONFIGURE_ARGS+=--with-build-config=bootstrap-lto-noplugin
 ALL_TARGET=	bootstrap-lean
+PIE_UNSAFE=	yes
 .else
 CONFIGURE_ARGS+=--with-build-config=bootstrap-debug
 ALL_TARGET=	bootstrap-lean
+PIE_UNSAFE=	yes
 .endif
 INSTALL_TARGET=	install-strip
 .if ${UID} != 0