git: 444f183cebf8 - main - lang/gcc12: Mark PIE_UNSAFE

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

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

commit 444f183cebf8b5e304b143a900e2f70f1e30bde4
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2023-02-03 13:03:28 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2023-02-03 15:11:03 +0000

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

diff --git a/lang/gcc12/Makefile b/lang/gcc12/Makefile
index 3987299d1cab..24895e8dc2d5 100644
--- a/lang/gcc12/Makefile
+++ b/lang/gcc12/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