commit | 9138e3f355fb786be6d594905410b7247219d59e | [log] [tgz] |
---|---|---|
author | Thomas Heijligen <thomas.heijligen@secunet.com> | Mon Jan 31 23:49:44 2022 +0100 |
committer | Nico Huber <nico.h@gmx.de> | Sun Jan 29 12:29:02 2023 +0000 |
tree | a890783dae0ea0c9062a7fbb847e4f751708147e | |
parent | 98cfa69207c6558fce9b71f8d0510b3130afd67e [diff] |
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. Change-Id: I2c1668a350aa0806fccfb4e9cd8b04861f085ee9 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/61523 Original-Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/72291 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>