[Bug fortran/47571] [4.6 Regression] undefined reference to clock_gettime in Linux build of 02/01/2011

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 1 16:27:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47571

--- Comment #12 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-02-01 16:26:33 UTC ---
I concur with Jakub. If (big "if") I have understood weakrefs correctly, one
does something like in libquadmath/quadmath_weak.h and then can use them then
in the following way

  if (__weak_reference_name)
    res = __weak_reference_name ()
  else
    res = some_other_function

(Cf. also http://stackoverflow.com/questions/274753/)



More information about the Gcc-bugs mailing list