fixed gcc version comparison in Makefiles

Signed-off-by: Isaiah Grace <irgkenya4@gmail.com>
This commit is contained in:
Isaiah Grace 2020-09-21 15:45:40 -04:00
parent e6ce58fef4
commit ddeda25e8b
13 changed files with 52 additions and 52 deletions

View File

@ -287,12 +287,12 @@ ifeq ($(TARGET_OS),linux)
GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.) GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.)
# Make sure the version number has at least 3 decimals # Make sure the version number has at least 4 decimals
GCCVERSION += 00 GCCVERSION += 000
# Remove spaces from the version number # Remove spaces from the version number
GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION)) GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION))
# Crop the version number to 3 decimals. # Crop the version number to 4 decimals.
GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-3) GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-4)
#$(warning $(GCCVERSION)) #$(warning $(GCCVERSION))
IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 500) IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 500)

View File

@ -281,12 +281,12 @@ ifeq ($(TARGET_OS),linux)
GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.) GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.)
# Make sure the version number has at least 3 decimals # Make sure the version number has at least 4 decimals
GCCVERSION += 00 GCCVERSION += 000
# Remove spaces from the version number # Remove spaces from the version number
GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION)) GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION))
# Crop the version number to 3 decimals. # Crop the version number to 4 decimals.
GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-3) GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-4)
#$(warning $(GCCVERSION)) #$(warning $(GCCVERSION))
IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 470) IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 470)

View File

@ -299,12 +299,12 @@ ifeq ($(TARGET_OS),linux)
GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.) GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.)
# Make sure the version number has at least 3 decimals # Make sure the version number has at least 4 decimals
GCCVERSION += 00 GCCVERSION += 000
# Remove spaces from the version number # Remove spaces from the version number
GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION)) GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION))
# Crop the version number to 3 decimals. # Crop the version number to 4 decimals.
GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-3) GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-4)
#$(warning $(GCCVERSION)) #$(warning $(GCCVERSION))
IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 470) IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 470)

View File

@ -292,12 +292,12 @@ ifeq ($(TARGET_OS),linux)
GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.) GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.)
# Make sure the version number has at least 3 decimals # Make sure the version number has at least 4 decimals
GCCVERSION += 00 GCCVERSION += 000
# Remove spaces from the version number # Remove spaces from the version number
GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION)) GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION))
# Crop the version number to 3 decimals. # Crop the version number to 4 decimals.
GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-3) GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-4)
#$(warning $(GCCVERSION)) #$(warning $(GCCVERSION))
IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 470) IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 470)

View File

@ -287,12 +287,12 @@ ifeq ($(TARGET_OS),linux)
GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.) GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.)
# Make sure the version number has at least 3 decimals # Make sure the version number has at least 4 decimals
GCCVERSION += 00 GCCVERSION += 000
# Remove spaces from the version number # Remove spaces from the version number
GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION)) GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION))
# Crop the version number to 3 decimals. # Crop the version number to 4 decimals.
GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-3) GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-4)
#$(warning $(GCCVERSION)) #$(warning $(GCCVERSION))
IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 500) IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 500)

View File

@ -281,12 +281,12 @@ ifeq ($(TARGET_OS),linux)
GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.) GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.)
# Make sure the version number has at least 3 decimals # Make sure the version number has at least 4 decimals
GCCVERSION += 00 GCCVERSION += 000
# Remove spaces from the version number # Remove spaces from the version number
GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION)) GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION))
# Crop the version number to 3 decimals. # Crop the version number to 4 decimals.
GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-3) GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-4)
#$(warning $(GCCVERSION)) #$(warning $(GCCVERSION))
IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 500) IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 500)

View File

@ -281,12 +281,12 @@ ifeq ($(TARGET_OS),linux)
GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.) GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.)
# Make sure the version number has at least 3 decimals # Make sure the version number has at least 4 decimals
GCCVERSION += 00 GCCVERSION += 000
# Remove spaces from the version number # Remove spaces from the version number
GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION)) GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION))
# Crop the version number to 3 decimals. # Crop the version number to 4 decimals.
GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-3) GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-4)
#$(warning $(GCCVERSION)) #$(warning $(GCCVERSION))
IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 470) IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 470)

View File

@ -287,12 +287,12 @@ ifeq ($(TARGET_OS),linux)
GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.) GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.)
# Make sure the version number has at least 3 decimals # Make sure the version number has at least 4 decimals
GCCVERSION += 00 GCCVERSION += 000
# Remove spaces from the version number # Remove spaces from the version number
GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION)) GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION))
# Crop the version number to 3 decimals. # Crop the version number to 4 decimals.
GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-3) GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-4)
#$(warning $(GCCVERSION)) #$(warning $(GCCVERSION))
IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 500) IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 500)

View File

@ -309,12 +309,12 @@ ifeq ($(TARGET_OS),linux)
GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.) GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.)
# Make sure the version number has at least 3 decimals # Make sure the version number has at least 4 decimals
GCCVERSION += 00 GCCVERSION += 000
# Remove spaces from the version number # Remove spaces from the version number
GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION)) GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION))
# Crop the version number to 3 decimals. # Crop the version number to 4 decimals.
GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-3) GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-4)
#$(warning $(GCCVERSION)) #$(warning $(GCCVERSION))
IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 470) IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 470)

View File

@ -311,12 +311,12 @@ ifeq ($(TARGET_OS),linux)
GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.) GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.)
# Make sure the version number has at least 3 decimals # Make sure the version number has at least 4 decimals
GCCVERSION += 00 GCCVERSION += 000
# Remove spaces from the version number # Remove spaces from the version number
GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION)) GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION))
# Crop the version number to 3 decimals. # Crop the version number to 4 decimals.
GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-3) GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-4)
#$(warning $(GCCVERSION)) #$(warning $(GCCVERSION))
IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 470) IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 470)

View File

@ -287,12 +287,12 @@ ifeq ($(TARGET_OS),linux)
GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.) GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.)
# Make sure the version number has at least 3 decimals # Make sure the version number has at least 4 decimals
GCCVERSION += 00 GCCVERSION += 000
# Remove spaces from the version number # Remove spaces from the version number
GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION)) GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION))
# Crop the version number to 3 decimals. # Crop the version number to 4 decimals.
GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-3) GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-4)
#$(warning $(GCCVERSION)) #$(warning $(GCCVERSION))
IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 500) IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 500)

View File

@ -309,12 +309,12 @@ ifeq ($(TARGET_OS),linux)
GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.) GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.)
# Make sure the version number has at least 3 decimals # Make sure the version number has at least 4 decimals
GCCVERSION += 00 GCCVERSION += 000
# Remove spaces from the version number # Remove spaces from the version number
GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION)) GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION))
# Crop the version number to 3 decimals. # Crop the version number to 4 decimals.
GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-3) GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-4)
#$(warning $(GCCVERSION)) #$(warning $(GCCVERSION))
IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 470) IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 470)

View File

@ -275,12 +275,12 @@ ifeq ($(TARGET_OS),linux)
GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.) GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.) GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.)
# Make sure the version number has at least 3 decimals # Make sure the version number has at least 4 decimals
GCCVERSION += 00 GCCVERSION += 000
# Remove spaces from the version number # Remove spaces from the version number
GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION)) GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION))
# Crop the version number to 3 decimals. # Crop the version number to 4 decimals.
GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-3) GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-4)
#$(warning $(GCCVERSION)) #$(warning $(GCCVERSION))
IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 470) IS_MIN_VERSION := $(shell expr `echo $(GCCVERSION)` \>= 470)