From 2846194ba6e41c0b64c26edde489f984d528cf2e Mon Sep 17 00:00:00 2001 From: Randolph Chung Date: Fri, 21 Oct 2005 22:52:00 -0400 Subject: [PATCH] --- yaml --- r: 10499 b: refs/heads/master c: 5beb5f32c56b70f79117e13a1abd54824a78466c h: refs/heads/master i: 10497: 70403c123403b8f6399adf967613cfe4c6567f32 10495: 8e066536663c73083726a5ab9d7b08ee7a57f9fd v: v3 --- [refs] | 2 +- trunk/arch/parisc/Makefile | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index c4472dff0522..7792155cd33e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 675ec7a56a77da2dda27180c95ee82ae4879142a +refs/heads/master: 5beb5f32c56b70f79117e13a1abd54824a78466c diff --git a/trunk/arch/parisc/Makefile b/trunk/arch/parisc/Makefile index e3549f480fa5..9b7e42490dd1 100644 --- a/trunk/arch/parisc/Makefile +++ b/trunk/arch/parisc/Makefile @@ -20,7 +20,8 @@ NM = sh $(srctree)/arch/parisc/nm CHECKFLAGS += -D__hppa__=1 ifdef CONFIG_64BIT -CROSS_COMPILE := hppa64-linux- +CROSS_COMPILE := $(shell if [ -x /usr/bin/hppa64-linux-gnu-gcc ]; then \ + echo hppa64-linux-gnu-; else echo hppa64-linux-; fi) UTS_MACHINE := parisc64 CHECKFLAGS += -D__LP64__=1 -m64 else @@ -34,6 +35,14 @@ FINAL_LD=$(CROSS_COMPILE)ld --warn-common --warn-section-align OBJCOPY_FLAGS =-O binary -R .note -R .comment -S +GCC_VERSION := $(call cc-version) +ifneq ($(shell if [ -z $(GCC_VERSION) ] ; then echo "bad"; fi ;),) +$(error Sorry, couldn't find ($(cc-version)).) +endif +ifneq ($(shell if [ $(GCC_VERSION) -lt 0303 ] ; then echo "bad"; fi ;),) +$(error Sorry, your compiler is too old ($(GCC_VERSION)). GCC v3.3 or above is required.) +endif + cflags-y := -pipe # These flags should be implied by an hppa-linux configuration, but they