aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenzo Salvadore <salvadore@FreeBSD.org>2023-01-23 23:58:10 +0000
committerLorenzo Salvadore <salvadore@FreeBSD.org>2023-01-24 00:37:44 +0000
commit08587f681899354917a2a8c7b6719bf0b8863b28 (patch)
tree38a3b39dac847190e00bcbaf0b378230c586e462
parenta0607ebca1955d66f6a93336e305c6e70b5ff1ec (diff)
downloadports-08587f681899354917a2a8c7b6719bf0b8863b28.tar.gz
ports-08587f681899354917a2a8c7b6719bf0b8863b28.zip
lang/gcc13-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
-rw-r--r--lang/gcc13-devel/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/gcc13-devel/Makefile b/lang/gcc13-devel/Makefile
index 25aacb562dc0..e0c28067a1cc 100644
--- a/lang/gcc13-devel/Makefile
+++ b/lang/gcc13-devel/Makefile
@@ -1,5 +1,6 @@
PORTNAME= gcc
PORTVERSION= 13.0.1.s20230122
+PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= GCC/snapshots/${DIST_VERSION}
PKGNAMESUFFIX= ${SUFFIX}-devel
@@ -88,9 +89,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