mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 10:06:40 -04:00
GCC, the GNU Compiler Collection, supports a number of languages. This port installs the C, C++, and Fortran front ends as gcc15, g++15, and gfortran15, respectively. This is the first snapshot from trunk with the GCC 15 designation. It largely is a copy of lang/gcc14-devel.
22 lines
814 B
Text
22 lines
814 B
Text
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
|