Skip to content

Commit

Permalink
lang/gcc12-devel: Mark PIE_UNSAFE if a BOOTSTRAP option is enabled
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lsalvadore committed Jan 23, 2023
1 parent bea594f commit 80494be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lang/gcc12-devel/Makefile
@@ -1,5 +1,6 @@
PORTNAME= gcc
PORTVERSION= 12.2.1.s20230121
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= GCC/snapshots/${DIST_VERSION}
PKGNAMESUFFIX= ${SUFFIX}-devel
Expand Down Expand Up @@ -87,9 +88,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
Expand Down

0 comments on commit 80494be

Please sign in to comment.