Skip to content

Commit f5280cb

Browse files
Grant GrundlerKyle McMartin
authored andcommitted
[PARISC] Remove GCC_VERSION usage as suggested by Adrian Bunk
Signed-off-by: Grant Grundler <grundler@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
1 parent 6de187e commit f5280cb

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎arch/parisc/Makefile‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,8 @@ FINAL_LD=$(CROSS_COMPILE)ld --warn-common --warn-section-align
3535

3636
OBJCOPY_FLAGS =-O binary -R .note -R .comment -S
3737

38-
GCC_VERSION := $(call cc-version)
39-
ifneq ($(shell if [ -z $(GCC_VERSION) ] ; then echo "bad"; fi ;),)
40-
$(error Sorry, couldn't find ($(cc-version)).)
41-
endif
42-
ifneq ($(shell if [ $(GCC_VERSION) -lt 0303 ] ; then echo "bad"; fi ;),)
43-
$(error Sorry, your compiler is too old ($(GCC_VERSION)). GCC v3.3 or above is required.)
38+
ifneq ($(call cc-ifversion, -lt, 0303, "bad"),)
39+
$(error Sorry, GCC v3.3 or above is required.)
4440
endif
4541

4642
cflags-y := -pipe

0 commit comments

Comments
 (0)