gnu: libfaketime: Adjust flags on powerpc64le-linux.

* gnu/packages/check.scm (libfaketime)[arguments]: Adjust CFLAGS on
powerpc64le-linux to make package work.
This commit is contained in:
Efraim Flashner 2021-08-22 12:16:48 +03:00
parent 839e1eb085
commit 2a15e92766
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2694,7 +2694,13 @@ (define-public libfaketime
;; XXX: Without this flag, the CLOCK_REALTIME test hangs
;; indefinitely. See README.packagers for more information.
(setenv "FAKETIME_COMPILE_CFLAGS" "-DFORCE_MONOTONIC_FIX"))))
;; There are specific instructions to not enable more flags
;; than absolutely needed.
,(if (target-ppc64le?)
`(setenv "FAKETIME_COMPILE_CFLAGS"
"-DFORCE_MONOTONIC_FIX -DFORCE_PTHREAD_NONVER")
`(setenv "FAKETIME_COMPILE_CFLAGS"
"-DFORCE_MONOTONIC_FIX")))))
(add-before 'check 'pre-check
(lambda _
(substitute* "test/functests/test_exclude_mono.sh"