This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47571] [4.6/4.7 Regression] undefined reference to clock_gettime in Linux build of 02/01/2011
- From: "jb at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 15 Mar 2011 20:38:50 +0000
- Subject: [Bug fortran/47571] [4.6/4.7 Regression] undefined reference to clock_gettime in Linux build of 02/01/2011
- Auto-submitted: auto-generated
- References: <bug-47571-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47571
--- Comment #41 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-03-15 20:38:18 UTC ---
(In reply to comment #37)
> #if defined(__alpha__) && defined(__osf__)
> #undef HAVE_CLOCK_GETTIME
> #endif
>
> or some configure.ac equivalent. Ugly but still better than completely
> breaking Fortran.
Thinking about this some more, while the above is ugly it should at least be
safe. Please consider it approved from my part for 4.6; if you get approval
from the release manager, please commit it.
I'll regtest and submit my patch to review for trunk, and backport to the 4.6
branch after it has been in trunk for a while; I suspect this won't make the
4.6 release and will thus have to wait for 4.6.1. Hence your patch is a usable
compromise for 4.6.0.