* [Linux-ia64] [TRIVIAL PATCH] Cross-compile fix
@ 2003-03-23 19:11 Wolfgang Mauerer
2003-03-24 21:57 ` David Mosberger
0 siblings, 1 reply; 2+ messages in thread
From: Wolfgang Mauerer @ 2003-03-23 19:11 UTC (permalink / raw)
To: linux-ia64
Hello,
the attached patch (against bk-current) fixes a cross
compilation problem by using the target specific objdump
tool instead of the host specific one.
Thanks, Wolfgang
--- a/arch/ia64/Makefile Wed Mar 5 04:28:56 2003
+++ b/arch/ia64/Makefile Sat Mar 22 15:38:15 2003
@@ -23,7 +23,7 @@
GCC_VERSION=$(shell $(CC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f1 -d'.')
-GAS_STATUS=$(shell arch/ia64/scripts/check-gas $(CC))
+GAS_STATUS=$(shell arch/ia64/scripts/check-gas $(CC) $(OBJDUMP))
ifeq ($(GAS_STATUS),buggy)
$(error Sorry, you need a newer version of the assember, one that is built from \
--- a/arch/ia64/scripts/check-gas Wed Mar 5 04:29:33 2003
+++ b/arch/ia64/scripts/check-gas Sat Mar 22 15:38:27 2003
@@ -1,8 +1,9 @@
#!/bin/sh
dir=$(dirname $0)
CC=$1
+OBJDUMP=$2
$CC -c $dir/check-gas-asm.S
-res=$(objdump -r --section .data check-gas-asm.o | fgrep 00004 | tr -s ' ' |cut -f3 -d' ')
+res=$($OBJDUMP -r --section .data check-gas-asm.o | fgrep 00004 | tr -s ' ' |cut -f3 -d' ')
if [ $res != ".text" ]; then
echo buggy
else
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-24 21:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-23 19:11 [Linux-ia64] [TRIVIAL PATCH] Cross-compile fix Wolfgang Mauerer
2003-03-24 21:57 ` David Mosberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox