Codebase list gavl / 7a2e8ab
Fixed cross-compilation issues Thanks: Helmut Grohne <helmut@subdivi.de> Closes: #873710 IOhannes m zmölnig 6 years ago
2 changed file(s) with 34 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 From: Helmut Grohne <helmut@subdivi.de>
1 Subject: fix cross compilation
2
3 Trying to determine whether CLOCK_MONOTONIC works is in vein, because it may
4 differ from the buildd (in theory) being a runtime property of the kernel. For
5 compiling gavl, it is sufficient to know that the macro is defined and to
6 assume that on Debian systems CLOCK_MONOTONIC always works when it is defined.
7
8 Index: gavl-1.4.0/configure.ac
9 ===================================================================
10 --- gavl-1.4.0.orig/configure.ac
11 +++ gavl-1.4.0/configure.ac
12 @@ -159,17 +159,12 @@
13
14 AC_MSG_CHECKING(for CLOCK_MONOTONIC)
15
16 -AC_TRY_RUN([
17 +AC_TRY_COMPILE([
18 #include <time.h>
19 #include <errno.h>
20 -main()
21 - {
22 +],[
23 struct timespec tp;
24 - if(clock_gettime(CLOCK_MONOTONIC, &tp))
25 - return -1;
26 - else
27 - return 0;
28 - }
29 + clock_gettime(CLOCK_MONOTONIC, &tp);
30 ],
31 [
32 # program could be run
00 0001-ubuntu_armel_ftbfs.patch
11 0002-cpuid_x32.patch
22 0003-nonfatal-missing-doxygen.patch
3 0004-cross.patch