git: 0b8cadc98700 - main - lang/gcc11: Mark PIE_UNSAFE

From: Lorenzo Salvadore <salvadore_at_FreeBSD.org>
Date: Fri, 03 Feb 2023 13:01:52 UTC
The branch main has been updated by salvadore:

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

commit 0b8cadc9870038fe668eae4604b1de4a55c2e6a1
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2023-02-03 10:28:25 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2023-02-03 13:01:37 +0000

    lang/gcc11: Mark PIE_UNSAFE
    
    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/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lang/gcc11/Makefile b/lang/gcc11/Makefile
index 0dc1f02f0803..ab6d3d08bd34 100644
--- a/lang/gcc11/Makefile
+++ b/lang/gcc11/Makefile
@@ -80,9 +80,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