mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 13:46:24 +00:00
[PARISC] Update minimum compiler version and CROSS_COMPILE for parisc64
Prefix changed in debian, include "gnu" in the commandline. Signed-off-by: Carlos O'Donell <carlos@parisc-linux.org> Ensure the compiler version is new enough (>= 3.3) Signed-off-by: Randolph Chung <tausq@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
This commit is contained in:
parent
675ec7a56a
commit
5beb5f32c5
1 changed files with 10 additions and 1 deletions
|
@ -20,7 +20,8 @@ NM = sh $(srctree)/arch/parisc/nm
|
||||||
CHECKFLAGS += -D__hppa__=1
|
CHECKFLAGS += -D__hppa__=1
|
||||||
|
|
||||||
ifdef CONFIG_64BIT
|
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
|
UTS_MACHINE := parisc64
|
||||||
CHECKFLAGS += -D__LP64__=1 -m64
|
CHECKFLAGS += -D__LP64__=1 -m64
|
||||||
else
|
else
|
||||||
|
@ -34,6 +35,14 @@ FINAL_LD=$(CROSS_COMPILE)ld --warn-common --warn-section-align
|
||||||
|
|
||||||
OBJCOPY_FLAGS =-O binary -R .note -R .comment -S
|
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
|
cflags-y := -pipe
|
||||||
|
|
||||||
# These flags should be implied by an hppa-linux configuration, but they
|
# These flags should be implied by an hppa-linux configuration, but they
|
||||||
|
|
Loading…
Reference in a new issue