blob: 229647f009ccc9ca983e2fb4c59a127fa02cec00 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001From cbaaa42933bb27b1bcff4c7d71d54c913201ee88 Mon Sep 17 00:00:00 2001
2From: Lei Maohui <leimaohui@cn.fujitsu.com>
3Date: Fri, 9 Jan 2015 11:51:18 +0900
4Subject: [PATCH] cross_add_configure_option
5
6---
7 Makefile | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
9
10diff --git a/Makefile b/Makefile
11index 9c44633..39bebd0 100644
12--- a/Makefile
13+++ b/Makefile
14@@ -229,7 +229,7 @@ gdb_merge: force
15 @echo "../../${PROGRAM} ../../${PROGRAM}lib.a" > ${GDB}/gdb/mergeobj
16 @rm -f ${PROGRAM}
17 @if [ ! -f ${GDB}/config.status ]; then \
18- (cd ${GDB}; ./configure ${GDB_CONF_FLAGS} --with-separate-debug-dir=/usr/lib/debug \
19+ (cd ${GDB}; ./configure --host=${GDB_TARGET} --build=${GDB_HOST} --with-separate-debug-dir=/usr/lib/debug \
20 --with-bugurl="" --with-expat=no --with-python=no; \
21 make --no-print-directory CRASH_TARGET=${TARGET}; echo ${TARGET} > crash.target) \
22 else make --no-print-directory rebuild; fi
23@@ -277,7 +277,7 @@ force:
24
25 make_configure: force
26 @rm -f configure
27- @${CC} ${CONF_FLAGS} -o configure configure.c ${WARNING_ERROR} ${WARNING_OPTIONS}
28+ @cc ${CONF_FLAGS} -o configure configure.c ${WARNING_ERROR} ${WARNING_OPTIONS}
29
30 clean: make_configure
31 @./configure ${CONF_TARGET_FLAG} -q -b
32--
331.8.4.2
34