%% Bruno Haible <[EMAIL PROTECTED]> writes:

  bh> make-3.79.1, built on a recent glibc snapshot, links with the shared
  bh> library librt, but doesn't any symbol from this library! Of course this
  bh> costs startup time.

  bh> The reason is that the function file_timestamp_now() in file.c uses
  bh> clock_gettime, but that block depends on

  bh>     if (FILE_TIMESTAMP_HI_RES)

  bh> which macroexpands into

  bh>     if (0)

Seems like any decent compiler would omit this code!  Since Linux is
using GCC, I would double-expect that.  Maybe it only happens when you
build with optimization on?

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

Reply via email to