The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / xscreensaver / 0001-fix-cross-compile-ansi-c-bailout.patch
1 The configure bails out when cross-compiling, because it is over-cautious
2 about ANSI support in the C compiler. Work around this by disabling the
3 bail-out code.
4
5 Signed-off-by: Simon Dawson <spdawson@gmail.com>
6
7 diff -Nurp a/configure b/configure
8 --- a/configure 2013-07-16 10:23:32.000000000 +0100
9 +++ b/configure 2013-09-22 14:50:07.186953454 +0100
10 @@ -3537,9 +3537,7 @@ $as_echo "Solaris: adding -D__EXTENSIONS
11    { $as_echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
12  $as_echo_n "checking whether the compiler works on ANSI C... " >&6; }
13    if test "$cross_compiling" = yes; then
14 -  { { $as_echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
15 -$as_echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
16 -   { (exit 1); exit 1; }; }
17 +  :
18  else
19    cat >conftest.$ac_ext <<_ACEOF
20  /* confdefs.h.  */
21 @@ -8616,7 +8614,7 @@ fi
22  $as_echo "$ac_cv_xpointer" >&6; }
23    if test "$ac_cv_xpointer" != yes; then
24     cat >>confdefs.h <<\_ACEOF
25 -#define XPointer char*
26 +/* #define XPointer char* */
27  _ACEOF
28  
29    fi