mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-04-24 18:58:52 +02:00
build: Match any glibc and musl ABIs on the host_os AS_CASE
Reported-by: Helmut Grohne <helmut@subdivi.de>
This commit is contained in:
parent
4fec871c79
commit
c8a1b08b74
@ -45,14 +45,14 @@ AM_CONDITIONAL([HAVE_LIBTESTU01],
|
|||||||
[test "x$ac_cv_lib_testu01_unif01_CreateExternGenBits" = "xyes"])
|
[test "x$ac_cv_lib_testu01_unif01_CreateExternGenBits" = "xyes"])
|
||||||
|
|
||||||
AS_CASE([$host_os],
|
AS_CASE([$host_os],
|
||||||
[*-gnu], [
|
[*-gnu*], [
|
||||||
# In old glibc versions (< 2.17) clock_gettime() is in librt.
|
# In old glibc versions (< 2.17) clock_gettime() is in librt.
|
||||||
saved_LIBS="$LIBS"
|
saved_LIBS="$LIBS"
|
||||||
AC_SEARCH_LIBS([clock_gettime], [rt], [CLOCK_GETTIME_LIBS="-lrt"])
|
AC_SEARCH_LIBS([clock_gettime], [rt], [CLOCK_GETTIME_LIBS="-lrt"])
|
||||||
AC_SUBST([CLOCK_GETTIME_LIBS])
|
AC_SUBST([CLOCK_GETTIME_LIBS])
|
||||||
LIBS="$saved_LIBS"
|
LIBS="$saved_LIBS"
|
||||||
],
|
],
|
||||||
[*-musl], [
|
[*-musl*], [
|
||||||
# Upstream refuses to define this, we will do it ourselves then.
|
# Upstream refuses to define this, we will do it ourselves then.
|
||||||
AC_DEFINE([__MUSL__], [1], [Define to 1 if we are building for musl])
|
AC_DEFINE([__MUSL__], [1], [Define to 1 if we are building for musl])
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user