Add a comment for --enable-initfini-array [BZ #27945]

Document that --enable-initfini-array is enabled by default in GCC 12,
which can be removed when GCC 12 becomes the minimum requirement.
This commit is contained in:
H.J. Lu 2021-11-08 07:49:11 -08:00
parent afbf26492a
commit cbcd65c8b5

View File

@ -1445,7 +1445,9 @@ class Config(object):
# checking support. libcilkrts does not support GNU/Hurd (and
# has been removed in GCC 8, so --disable-libcilkrts can be
# removed once glibc no longer supports building with older
# GCC versions).
# GCC versions). --enable-initfini-array is enabled by default
# in GCC 12, which can be removed when GCC 12 becomes the
# minimum requirement.
cfg_opts = list(self.gcc_cfg)
cfg_opts += ['--enable-initfini-array']
cfg_opts += ['--disable-libssp', '--disable-libcilkrts']