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 / infozip / 0002-configure-Don-t-use-host-CPP.patch
1 From fc5c889131ff6270e1028cc7edd87e7f10a7da6d Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@openwide.fr>
3 Date: Thu, 22 Jan 2015 15:21:31 +0100
4 Subject: [PATCH 2/6] configure: Don't use host CPP
5
6 CPP is redefined if a cpp binary (/lib/cpp) is found on the host.
7
8 Use the CPP="${CC} -E" allows to pass the following checks:
9 Check if we can use asm code (for -DASMV)
10 Check if compiler generates underlines (for -DASM_CRC)
11
12 Signed-off-by: Romain Naour <romain.naour@openwide.fr>
13 ---
14  unix/configure | 7 -------
15  1 file changed, 7 deletions(-)
16
17 diff --git a/unix/configure b/unix/configure
18 index 4185fee..489009f 100644
19 --- a/unix/configure
20 +++ b/unix/configure
21 @@ -122,13 +122,6 @@ fi
22  echo Check for the C preprocessor
23  # on SVR4, cc -E does not produce correct assembler files. Need /lib/cpp.
24  CPP="${CC} -E"
25 -# solaris as(1) needs -P, maybe others as well ?
26 -[ -f /usr/ccs/lib/cpp ] && CPP="/usr/ccs/lib/cpp -P"
27 -[ -f /usr/lib/cpp ] && CPP=/usr/lib/cpp
28 -[ -f /lib/cpp ] && CPP=/lib/cpp
29 -[ -f /usr/bin/cpp ] && CPP=/usr/bin/cpp
30 -[ -f /xenix ] && CPP="${CC} -E"
31 -[ -f /lynx.os ] && CPP="${CC} -E"
32  
33  echo "#include <stdio.h>" > conftest.c
34  $CPP conftest.c >/dev/null 2>/dev/null || CPP="${CC} -E"
35 -- 
36 1.9.3
37