]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ia64: Cross-compile fix
authorWolfgang Mauerer <wolfgang@top.mynetix.de>
Mon, 24 Mar 2003 05:56:17 +0000 (21:56 -0800)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Mon, 24 Mar 2003 05:56:17 +0000 (21:56 -0800)
the attached patch (against bk-current) fixes a cross
compilation problem by using the target specific objdump
tool instead of the host specific one.

arch/ia64/Makefile
arch/ia64/scripts/check-gas

index 854f27e120cac31a981702197f1d14be2c53222b..04b54e8e258ba62d86deec7b4136a009b98c01db 100644 (file)
@@ -23,7 +23,7 @@ CFLAGS_KERNEL := -mconstant-gp
 
 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        \
index ef652caf82ae8840e808fb921a502615ade5fe5a..b7a4b1261ac59dc0196d506389f86a9c57d72da0 100755 (executable)
@@ -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