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
This commit is contained in:
Lorenzo Salvadore 2023-01-21 22:00:41 +01:00
parent f201d7ab37
commit d10424ba99
No known key found for this signature in database
GPG Key ID: B58F7C3CF6DB8A38

View File

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