1From 73269df4d8196abe81112acaa2613155b308a8b8 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 1/9] cross_add_configure_option 5 6%% original patch: 0001-cross_add_configure_option.patch 7--- 8 Makefile | 4 ++-- 9 1 file changed, 2 insertions(+), 2 deletions(-) 10 11diff --git a/Makefile b/Makefile 12index a2baec1..f1972c8 100644 13--- a/Makefile 14+++ b/Makefile 15@@ -232,7 +232,7 @@ gdb_merge: force 16 @echo "../../${PROGRAM} ../../${PROGRAM}lib.a" > ${GDB}/gdb/mergeobj 17 @rm -f ${PROGRAM} 18 @if [ ! -f ${GDB}/config.status ]; then \ 19- (cd ${GDB}; ./configure ${GDB_CONF_FLAGS} --with-separate-debug-dir=/usr/lib/debug \ 20+ (cd ${GDB}; ./configure --host=${GDB_TARGET} --build=${GDB_HOST} --with-separate-debug-dir=/usr/lib/debug \ 21 --with-bugurl="" --with-expat=no --with-python=no --disable-sim; \ 22 make --no-print-directory CRASH_TARGET=${TARGET}; echo ${TARGET} > crash.target) \ 23 else make --no-print-directory rebuild; fi 24@@ -283,7 +283,7 @@ force: 25 26 make_configure: force 27 @rm -f configure 28- @${CC} ${CONF_FLAGS} -o configure configure.c ${WARNING_ERROR} ${WARNING_OPTIONS} 29+ @${BUILD_CC} ${CONF_FLAGS} -o configure configure.c ${WARNING_ERROR} ${WARNING_OPTIONS} 30 31 clean: make_configure 32 @./configure ${CONF_TARGET_FLAG} -q -b 33-- 342.8.1 35 36