Download raw body.
lang/gcc/15: import (version 15.2.0)
On Thu, 14 Aug 2025 20:35:18 +0200,
Kirill A. Korinsky <kirill@korins.ky> wrote:
>
> ports@,
>
> I'd like to import lang/gcc/15 as it attached, but don't include it to bulk
> build yet.
>
Here a bit updated version.
When I worked to update gcc to the last version I had forced to add
--enable-host-shared as configure flag to be able to build it, and it
requires since this commit:
https://gcc.gnu.org/cgit/gcc/commit/?id=b6cb10af12cf869c1ae348c0e5cb2d364ef0abce
The root cause that ports infrastructure setup PICFLAG which brokes very
complicated gcc build since this commit.
So, here a new version which the cleaner, and it also allow to move a bit
forward with sparc64 build. Now it fails because our ld is crashed.
Anyway, I still would like to import it without including into bulk.
Ok?
Thus, here the diff between previous version:
diff --git a/lang/gcc/15/Makefile b/lang/gcc/15/Makefile
index 6bf255d84..9ee849b08 100644
--- a/lang/gcc/15/Makefile
+++ b/lang/gcc/15/Makefile
@@ -150,9 +150,6 @@ CONFIGURE_ARGS += \
--with-gmp="${LOCALBASE}" \
--enable-languages=${LANGS} \
--disable-libstdcxx-pch \
- --enable-default-pie \
- --enable-host-pie \
- --enable-host-shared \
--enable-standard-branch-protection \
--without-isl
@@ -162,6 +159,15 @@ CONFIGURE_ARGS += \
--enable-default-ssp
.endif
+# PICFLAG broke gcc build after
+# https://gcc.gnu.org/cgit/gcc/commit/?id=b6cb10af12cf869c1ae348c0e5cb2d364ef0abce
+.if "${PICFLAG}" != ""
+CONFIGURE_ARGS += \
+ --enable-host-pie \
+ --enable-default-pie
+.endif
+PICFLAG=
+
# This is needed, as internal cpp is no longer compatible with the
# visible beast
CONFIGURE_ARGS += --enable-cpp
--
wbr, Kirill
lang/gcc/15: import (version 15.2.0)