| commit | 0b8fe400c04128f2c6e727d9ca7cda35d9043104 | [log] [tgz] |
|---|---|---|
| author | Thomas Heijligen <thomas.heijligen@secunet.com> | Mon Jan 31 23:49:44 2022 +0100 |
| committer | Commit Bot <commit-bot@chromium.org> | Tue Feb 22 00:17:45 2022 +0000 |
| tree | 6bda5291677bcadd2a1d38072f7b6ac24a8550ba | |
| parent | b7e6383eeb725e1e76952e20136d3767614024f8 [diff] |
UPSTREAM: Makefile: check if librt is an external library Some systems, e.g. OpenBSD, have clock_gettime / librt build into the libc and therefore fail to link against it with -lrt. Thus, detect this and link only if needed. Original-Change-Id: I2c1668a350aa0806fccfb4e9cd8b04861f085ee9 Original-Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/61523 Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Original-Reviewed-by: Angel Pons <th3fanbus@gmail.com> (cherry picked from commit 274e146621a22f3de4790e685226e1a87bdca51b) BUG=none BRANCH=none TEST=make && ninja && ninja test Signed-off-by: Nikolai Artemiev <nartemiev@google.com> Change-Id: I0d01ebcb5914ad185237ca124db1fcd09e929aba Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/3473139 Reviewed-by: Sean Paul <seanpaul@chromium.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Tested-by: Edward O'Callaghan <quasisec@chromium.org>