git: 503f89cfa5ce - main - lang/gcc13-devel: Enable support for .init_array and .fini_array
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 14 May 2023 13:31:10 UTC
The branch main has been updated by salvadore: URL: https://cgit.FreeBSD.org/ports/commit/?id=503f89cfa5ce253f612f9a7cc722110f7d84261e commit 503f89cfa5ce253f612f9a7cc722110f7d84261e Author: Lorenzo Salvadore <salvadore@FreeBSD.org> AuthorDate: 2023-05-07 16:34:26 +0000 Commit: Lorenzo Salvadore <salvadore@FreeBSD.org> CommitDate: 2023-05-14 13:30:18 +0000 lang/gcc13-devel: Enable support for .init_array and .fini_array 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. See also review https://reviews.freebsd.org/D39968 for lang/gcc11-devel. Reported by: Dan McGregor <dan.mcgregor@usask.ca> --- lang/gcc13-devel/Makefile | 1 + lang/gcc13-devel/files/patch-gcc_configure | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/lang/gcc13-devel/Makefile b/lang/gcc13-devel/Makefile index 29fb92a90e4e..4b304806e749 100644 --- a/lang/gcc13-devel/Makefile +++ b/lang/gcc13-devel/Makefile @@ -1,5 +1,6 @@ PORTNAME= gcc PORTVERSION= 13.1.1.s20230506 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= GCC/snapshots/${DIST_VERSION} PKGNAMESUFFIX= ${SUFFIX}-devel diff --git a/lang/gcc13-devel/files/patch-gcc_configure b/lang/gcc13-devel/files/patch-gcc_configure new file mode 100644 index 000000000000..d4e7e8d23e60 --- /dev/null +++ b/lang/gcc13-devel/files/patch-gcc_configure @@ -0,0 +1,20 @@ +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-04 17:36:54 UTC ++++ gcc/configure +@@ -24214,6 +24214,11 @@ 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. */ ++# endif + # else + # error The C library not known to support .init_array/.fini_array + # endif