python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / zip / 0002-configure-Don-t-use-host-CPP.patch
blob85049127221a47a02f9ae4078879b5b5feeedd2e
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
6 CPP is redefined if a cpp binary (/lib/cpp) is found on the host.
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)
12 Signed-off-by: Romain Naour <romain.naour@openwide.fr>
13 ---
14 unix/configure | 7 -------
15 1 file changed, 7 deletions(-)
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"
33 echo "#include <stdio.h>" > conftest.c
34 $CPP conftest.c >/dev/null 2>/dev/null || CPP="${CC} -E"
35 --
36 1.9.3