[PATCH] gprofng: the gprofng build failed with glibc versions before 2.17

Tobias Burnus tobias@codesourcery.com
Mon Mar 14 23:13:11 GMT 2022


Hi Vladimir,

I can confirm that your patch fixes my two build issues
(CLOCK_MONOTONIC_RAW and the -lrt issue).

From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>

> gprofng/ChangeLog
> 2022-03-14  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
>
>       * gprofng/configure.ac: Check for the clock_gettime function.
>       * gprofng/configure: Rebuild.
>       * gprofng/common/gp-time.h: Set CLOCK_MONOTONIC_RAW.
>       * gprofng/common/config.h.in: Add HAVE_CLOCK_GETTIME.
>       * gprofng/src/gethrtime.c: Add clock_gettime.
(cf. https://sourceware.org/pipermail/binutils/2022-March/120019.html)

Thanks,

Tobias

-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955


More information about the Binutils mailing list