gnu: libfaketime: Adjust flags on riscv64-linux.

* gnu/packages/check.scm (libfaketime)[arguments]: When building for
riscv64-linux adjust CFLAGS to make the package work.
This commit is contained in:
Efraim Flashner 2021-08-22 12:19:38 +03:00
parent f57883ec79
commit a1e84575a4
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2808,7 +2808,8 @@ (define-public libfaketime
;; indefinitely. See README.packagers for more information.
;; There are specific instructions to not enable more flags
;; than absolutely needed.
,(if (target-ppc64le?)
,(if (or (target-ppc64le?)
(target-riscv64?))
`(setenv "FAKETIME_COMPILE_CFLAGS"
"-DFORCE_MONOTONIC_FIX -DFORCE_PTHREAD_NONVER")
`(setenv "FAKETIME_COMPILE_CFLAGS"