This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
I see your point, in particular for checks using the C++ compiler, we have many in libstdc++.I don't have an opinion on this; however, I would like to point out that the check is already centralized, though in config/. The purpose of the toplevel configure is *not* to have tests performed for all submodules (BTW, this would be possible only for build/host checks; target checks would have to wait for gcc to be built), but to find tools and to decide what to build.
In this respect, checks for the prerequisites of GCC (like GMP or an Ada
compiler) are already borderline. They are present there just because
you'd rather see the compilation fail at configure time, not at make
time, if the problem is that prerequisite packages are missing.
Humm... Certainly there is an inconsistency between the way libstdc++ uses that test and the other three cases, which we should resolve. I'm not sure to understand how --disable-link-tests would help about that. Is it something that would be essentially used only by libstdc++-v3? Would it be used by its checks also doing link tests to avoid hard failures of configure with "link tests not allowed after..."? In that case maybe people could just pass --disable-tls when building, as they have to do anyway for the other libraries...I think we can provide a --disable-link-tests to preserve this behaviorAs per our earlier discussions, I think the libstdc++ "smart"-ness is a
mistake. We have a good method for probing the C library: link-time
tests. We don't use it for libstdc++ only because some people use a
build procedure in which you can't link C programs by the time you're
building the C++ library. I suspect the other library maintainers just
didn't worry about that scenario.
for people that find it interesting. We can have a deprecation period.
OTOH, I am also in favor of removing it at least by default. Nowadays,Ok, let's try to make those people happier for 4.4.0...
people build GCC with C-only support, then libc, then rebuild GCC.
Also, as a single data point, a friend just wrote me last week because
he was puzzled by the libstdc++ cross-compilation configuration and
couldn't get it to work. :-)
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |