Parcourir la source

Provide relaxed mode of gcc check

Suren A. Chilingaryan il y a 8 ans
Parent
commit
31c5fc500f
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -19,8 +19,8 @@ default:
 		echo "No compiler of $$GCC_MAJOR series is installed" ;\
 		echo "No compiler of $$GCC_MAJOR series is installed" ;\
 		exit 1 ;\
 		exit 1 ;\
 	    fi ;\
 	    fi ;\
-	    GCC_VERSION=`$$CC --version | head -n 1 | tr ' ' '\n' | grep -e "[0-9]\+\.[0-9]" | head -n 1` ;\
-	    if [ $$KERNEL_GCC_VERSION != $$GCC_VERSION ]; then \
+	    GCC_VERSION=`$$CC --version | head -n 1 | tr ' ' '\n' | grep -e "[0-9]\+\.[0-9]" | tail -n 1` ;\
+	    if [ $$KERNEL_GCC_VERSION != $$GCC_VERSION -a -z "$$RELAXED_GCC_CHECK" ]; then \
 		echo "The $$GCC_VERSION of $$GCC_MAJOR series is installed" ;\
 		echo "The $$GCC_VERSION of $$GCC_MAJOR series is installed" ;\
 		exit 1 ;\
 		exit 1 ;\
 	    fi ;\
 	    fi ;\