Date: Sun, 21 Jun 2026 20:48:54 +0000 From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 35a12271a3ee - main - lang/gcc1[2-6]: add necessary contents to patch-gcc_configure Message-ID: <6a384e36.3d568.44c22c07@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=35a12271a3ee93d0e2e4fc6a742b927fccc721f9 commit 35a12271a3ee93d0e2e4fc6a742b927fccc721f9 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2026-06-21 20:46:16 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2026-06-21 20:48:49 +0000 lang/gcc1[2-6]: add necessary contents to patch-gcc_configure 1. For gcc14, restore the lost content. 2. For others, add powerpc64le-related content. Pointy hat: me --- lang/gcc12/Makefile | 2 +- lang/gcc12/files/patch-gcc_configure | 10 ++++++++++ lang/gcc13/Makefile | 2 +- lang/gcc13/files/patch-gcc_configure | 10 ++++++++++ lang/gcc14/Makefile | 2 +- lang/gcc14/files/patch-gcc_configure | 22 +++++++++++++++++++++- lang/gcc15/Makefile | 2 +- lang/gcc15/files/patch-gcc_configure | 10 ++++++++++ lang/gcc16/Makefile | 2 +- lang/gcc16/files/patch-gcc_configure | 10 ++++++++++ 10 files changed, 66 insertions(+), 6 deletions(-) diff --git a/lang/gcc12/Makefile b/lang/gcc12/Makefile index f1eb0557e635..dea34f60c2e5 100644 --- a/lang/gcc12/Makefile +++ b/lang/gcc12/Makefile @@ -1,6 +1,6 @@ PORTNAME= gcc PORTVERSION= 12.4.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= lang MASTER_SITES= GCC PKGNAMESUFFIX= ${SUFFIX} diff --git a/lang/gcc12/files/patch-gcc_configure b/lang/gcc12/files/patch-gcc_configure index cc60593ba6f7..b7ca229242ed 100644 --- a/lang/gcc12/files/patch-gcc_configure +++ b/lang/gcc12/files/patch-gcc_configure @@ -20,3 +20,13 @@ from __FreeBSD_version == 1000010. # else # error The C library not known to support .init_array/.fini_array # endif +@@ -31678,7 +31678,8 @@ + if test "${with_long_double_format+set}" = set; then : + withval=$with_long_double_format; + case "$target:$with_long_double_format" in +- powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm) ++ powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm | \ ++ powerpc64le-*-freebsd*:ieee | powerpc64le-*-freebsd*:ibm) + : + ;; + powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm) diff --git a/lang/gcc13/Makefile b/lang/gcc13/Makefile index 51eab576cca3..d3f763c4bfcf 100644 --- a/lang/gcc13/Makefile +++ b/lang/gcc13/Makefile @@ -1,6 +1,6 @@ PORTNAME= gcc PORTVERSION= 13.3.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= lang MASTER_SITES= GCC PKGNAMESUFFIX= ${SUFFIX} diff --git a/lang/gcc13/files/patch-gcc_configure b/lang/gcc13/files/patch-gcc_configure index cc60593ba6f7..4eb9fd921946 100644 --- a/lang/gcc13/files/patch-gcc_configure +++ b/lang/gcc13/files/patch-gcc_configure @@ -20,3 +20,13 @@ from __FreeBSD_version == 1000010. # else # error The C library not known to support .init_array/.fini_array # endif +@@ -31475,7 +31475,8 @@ + if test "${with_long_double_format+set}" = set; then : + withval=$with_long_double_format; + case "$target:$with_long_double_format" in +- powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm) ++ powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm | \ ++ powerpc64le-*-freebsd*:ieee | powerpc64le-*-freebsd*:ibm) + : + ;; + powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm) diff --git a/lang/gcc14/Makefile b/lang/gcc14/Makefile index 17159a0be400..56a6e947cd92 100644 --- a/lang/gcc14/Makefile +++ b/lang/gcc14/Makefile @@ -1,6 +1,6 @@ PORTNAME= gcc PORTVERSION= 14.2.0 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= lang MASTER_SITES= GCC PKGNAMESUFFIX= ${SUFFIX} diff --git a/lang/gcc14/files/patch-gcc_configure b/lang/gcc14/files/patch-gcc_configure index f5fff9e6160c..0899fde0c597 100644 --- a/lang/gcc14/files/patch-gcc_configure +++ b/lang/gcc14/files/patch-gcc_configure @@ -1,5 +1,25 @@ ---- gcc/configure.orig +Enable support for .init_array and .fini_array, which FreeBSD supports +since commit 83aa9cc00c2d83d05a0efe7a1496d8aab4a153bb in the src +repository. + +There __FreeBSD_version is 1000009, so we start enabling the support +from __FreeBSD_version == 1000010. +--- gcc/configure.orig 2023-05-11 22:33:34 UTC +++ gcc/configure +@@ -24214,6 +24214,13 @@ EOF + #else + # if defined __sun__ && defined __svr4__ + /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */ ++# elif defined __FreeBSD__ ++# include <sys/param.h> ++# if __FreeBSD_version >= 1000010 ++ /* FreeBSD supports .init_array/.fini_array since FreeBSD 10. */ ++# else ++# error The C library not known to support .init_array/.fini_array ++# endif + # else + # error The C library not known to support .init_array/.fini_array + # endif @@ -33568,7 +33568,8 @@ if test "${with_long_double_format+set}" = set; then : withval=$with_long_double_format; diff --git a/lang/gcc15/Makefile b/lang/gcc15/Makefile index 62443af95010..cd4dda5b1a55 100644 --- a/lang/gcc15/Makefile +++ b/lang/gcc15/Makefile @@ -1,6 +1,6 @@ PORTNAME= gcc PORTVERSION= 15.2.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= lang MASTER_SITES= GCC PKGNAMESUFFIX= ${SUFFIX} diff --git a/lang/gcc15/files/patch-gcc_configure b/lang/gcc15/files/patch-gcc_configure index cc60593ba6f7..ac82173bd603 100644 --- a/lang/gcc15/files/patch-gcc_configure +++ b/lang/gcc15/files/patch-gcc_configure @@ -20,3 +20,13 @@ from __FreeBSD_version == 1000010. # else # error The C library not known to support .init_array/.fini_array # endif +@@ -33564,7 +33564,8 @@ + if test "${with_long_double_format+set}" = set; then : + withval=$with_long_double_format; + case "$target:$with_long_double_format" in +- powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm) ++ powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm | \ ++ powerpc64le-*-freebsd*:ieee | powerpc64le-*-freebsd*:ibm) + : + ;; + powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm) diff --git a/lang/gcc16/Makefile b/lang/gcc16/Makefile index 50f171686af8..11f434a2ee36 100644 --- a/lang/gcc16/Makefile +++ b/lang/gcc16/Makefile @@ -1,6 +1,6 @@ PORTNAME= gcc PORTVERSION= 16.1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang MASTER_SITES= GCC PKGNAMESUFFIX= ${SUFFIX} diff --git a/lang/gcc16/files/patch-gcc_configure b/lang/gcc16/files/patch-gcc_configure index cc60593ba6f7..92654d6da3a6 100644 --- a/lang/gcc16/files/patch-gcc_configure +++ b/lang/gcc16/files/patch-gcc_configure @@ -20,3 +20,13 @@ from __FreeBSD_version == 1000010. # else # error The C library not known to support .init_array/.fini_array # endif +@@ -33823,7 +33823,8 @@ + if test "${with_long_double_format+set}" = set; then : + withval=$with_long_double_format; + case "$target:$with_long_double_format" in +- powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm) ++ powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm | \ ++ powerpc64le-*-freebsd*:ieee | powerpc64le-*-freebsd*:ibm) + : + ;; + powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a384e36.3d568.44c22c07>
