From 99f65f77fdb6cc05ee6272323818de48521b1796 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 4 Oct 2018 17:16:58 +0100 Subject: ensure fedora gcc gives us all the version info --- makefiles/Makefile.gcc | 2 +- makefiles/Makefile.tools | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/makefiles/Makefile.gcc b/makefiles/Makefile.gcc index 6ca7ba1..7d70bc1 100644 --- a/makefiles/Makefile.gcc +++ b/makefiles/Makefile.gcc @@ -93,7 +93,7 @@ endif ############################################################################### # Determine if the compiler supports simultaneous build & dep. -ccvsn := $(shell $(CC) -dumpversion) +ccvsn := $(shell $(CC) -dumpversion -dumpfullversion) # ccvsn = x.y.z GCCVER := $(word 1,$(subst ., ,$(ccvsn))) # GCCVER = x diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools index 33d6add..3021890 100644 --- a/makefiles/Makefile.tools +++ b/makefiles/Makefile.tools @@ -402,7 +402,7 @@ endif # Detect if the toolchain ought to support sanitizers SANITIZE_OK=no ifeq ($(toolchain),gcc) - GCC_VERSION := $(shell $(CC) -dumpversion) + GCC_VERSION := $(shell $(CC) -dumpversion -dumpfullversion) GCC_MAJOR := $(word 1,$(subst ., ,$(GCC_VERSION))) ifeq ($(shell expr $(GCC_MAJOR) \>= 6),1) SANITIZE_OK=yes -- cgit v1.2.3