aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenzo Salvadore <salvadore@FreeBSD.org>2023-02-03 10:28:25 +0000
committerLorenzo Salvadore <salvadore@FreeBSD.org>2023-02-03 13:01:37 +0000
commit0b8cadc9870038fe668eae4604b1de4a55c2e6a1 (patch)
treead4600b6ba01a03b449924ddbc609a662f326760
parent1abb835fa2824f80dba9d6d578ed239ee4c628bb (diff)
downloadports-0b8cadc9870038fe668eae4604b1de4a55c2e6a1.tar.gz
ports-0b8cadc9870038fe668eae4604b1de4a55c2e6a1.zip
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
-rw-r--r--lang/gcc11/Makefile2
1 files changed, 2 insertions, 0 deletions
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