Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From 043e1a9ec83a59671ef8c4cad679dbf781e5ef98 Mon Sep 17 00:00:00 2001 |
| 2 | From: Jackie Huang <jackie.huang@windriver.com> |
| 3 | Date: Sun, 29 Nov 2015 23:37:06 -0800 |
| 4 | Subject: [PATCH] configure: use BUILD_CC for ccdv |
| 5 | |
| 6 | ccdv is intended to be invoked from Makefiles only, |
| 7 | it doesn't work for the cross compiling, so compile |
| 8 | it with $BUILD_CC and corresponding CFLAGS. |
| 9 | |
| 10 | Upstream-Status: Inappropriate [cross compile specific] |
| 11 | |
| 12 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
| 13 | --- |
| 14 | configure | 2 +- |
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/configure b/configure |
| 18 | index 2f0fae0..a7e9112 100755 |
| 19 | --- a/configure |
| 20 | +++ b/configure |
| 21 | @@ -11286,7 +11286,7 @@ panic: |
| 22 | } /* main */ |
| 23 | /* eof ccdv.c */ |
| 24 | EOF |
| 25 | - ${CC-cc} $DEFS $CPPFLAGS $CFLAGS "ccdv.c" -o "ccdv" >/dev/null 2>&1 |
| 26 | + ${BUILD_CC} $DEFS ${BUILD_CPPFLAGS} ${BUILD_CFLAGS} "ccdv.c" -o "ccdv" >/dev/null 2>&1 |
| 27 | rm -f ccdv.c ccdv.o ccdv.c.gz.uu ccdv.c.gz |
| 28 | strip ./ccdv >/dev/null 2>&1 |
| 29 | ./ccdv >/dev/null 2>&1 |
| 30 | -- |
| 31 | 2.3.5 |
| 32 | |