]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add --disable-libstdcxx-hosted as an alias for hosted-libstdcxx
authorJonathan Wakely <jwakely@redhat.com>
Thu, 6 Oct 2022 17:41:22 +0000 (18:41 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 7 Oct 2022 11:55:52 +0000 (12:55 +0100)
commit6bd2c1231a95e257dd590754430bdb191b3bca11
treea2470cb399b8f6b24a90ac4ccb33930a3ccc39b3
parent93b3ab6c0c6a44df50e9312c8106b4d1001d6205
libstdc++: Add --disable-libstdcxx-hosted as an alias for hosted-libstdcxx

Most libstdc++ configure args are of the form --enable-libstdcxx-xxx but
the option to build freestanding is --disable-hosted-libstdcxx. If you
accidentally type --disable-libstdcxx-hosted then it will be ignored.

This adds --disable-libstdcxx-hosted as an alias for the existing arg,
so it works whichever way you say it. If both args are used explicitly
and their values do not agree, configure fails with an error.

libstdc++-v3/ChangeLog:

* acinclude.m4 (GLIBCXX_ENABLE_HOSTED): Add libstdcxx-hosted
enable arg as an alias for hosted-libstdcxx enable arg.
* configure: Regenerate.
libstdc++-v3/acinclude.m4
libstdc++-v3/configure