Use "-lrt" instead of the resolved find_library result when linking librt (#665)

find_library defaults to shared objects
This commit is contained in:
László Nagy 2020-04-21 06:35:10 +10:00 committed by GitHub
parent df60c82df4
commit 1a02b7a205
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,7 +191,7 @@ absl_cc_library(
${ABSL_DEFAULT_COPTS}
LINKOPTS
${ABSL_DEFAULT_LINKOPTS}
$<$<BOOL:${LIBRT}>:${LIBRT}>
$<$<BOOL:${LIBRT}>:-lrt>
$<$<BOOL:${MINGW}>:"advapi32">
DEPS
absl::atomic_hook