[PATCH] build: guess availability of monotonic clock for cross compilation
Adam Jackson
ajax at nwnk.net
Mon Jan 8 20:01:04 UTC 2018
On Thu, 2017-12-21 at 11:48 +0100, Helmut Grohne wrote:
> When cross compiling, the value of MONOTONIC_CLOCK would be "cross
> compiling", because AC_RUN_IFELSE doesn't work. However when enabling
> wayland, a monotonic clock is required and configure aborts.
>
> We change detection of CLOCK_MONOTONIC to degrade it gracefully from a
> run check to a declaration check in case of cross compilation based on
> the assumption that most systems will have a monotonic clock and those
> that don't won't be able to run Xwayland anyway. The trade-off
> essentially is either "always fail cross compilation" or "produce an
> unusable Xwayland for unusual platform" and this commit switches to the
> latter.
>
> Signed-off-by: Helmut Grohne <helmut at subdivi.de>
> Bug-Debian: https://bugs.debian.org/882531
Merged, thanks!
remote: I: patch #194605 updated using rev c601c8faf54ff9e3bcbc653421828d71042deef7.
remote: I: 1 patch(es) updated to state Accepted.
To ssh://git.freedesktop.org/git/xorg/xserver
a309323328..c601c8faf5 master -> master
- ajax
More information about the xorg-devel
mailing list