diff options
author | Lorenzo Salvadore <salvadore@FreeBSD.org> | 2023-05-22 19:53:27 +0200 |
---|---|---|
committer | Lorenzo Salvadore <salvadore@FreeBSD.org> | 2023-05-22 22:34:50 +0200 |
commit | 371841193135b8822ac3638ac0eec10cbf8b1983 (patch) | |
tree | 29fe058a0518ae10fff16718ad6b66c7cdca7949 /lang | |
parent | devel/py-types-PyYAML: update 6.0.12.9 → 6.0.12.10 (diff) |
lang/gcc13-devel: Fix enable init_array patch
Add an error line that was missing in case _FreeBSD_version <
1000010.
Reported by: gnikl@users.sourceforge.net
Fixes: 503f89cfa5ce lang/gcc13-devel: Enable support for
.init_array and .fini_array
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gcc13-devel/Makefile | 1 | ||||
-rw-r--r-- | lang/gcc13-devel/files/patch-gcc_configure | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lang/gcc13-devel/Makefile b/lang/gcc13-devel/Makefile index 832a9172a6f9..10e804d3d609 100644 --- a/lang/gcc13-devel/Makefile +++ b/lang/gcc13-devel/Makefile @@ -1,5 +1,6 @@ PORTNAME= gcc PORTVERSION= 13.1.1.s20230513 +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 index d4e7e8d23e60..cc60593ba6f7 100644 --- a/lang/gcc13-devel/files/patch-gcc_configure +++ b/lang/gcc13-devel/files/patch-gcc_configure @@ -4,9 +4,9 @@ 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.orig 2023-05-11 22:33:34 UTC +++ gcc/configure -@@ -24214,6 +24214,11 @@ EOF +@@ -24214,6 +24214,13 @@ EOF #else # if defined __sun__ && defined __svr4__ /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */ @@ -14,6 +14,8 @@ from __FreeBSD_version == 1000010. +# 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 |