summaryrefslogtreecommitdiff
path: root/makefiles/Makefile.tools
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2018-10-04 17:16:58 +0100
committerVincent Sanders <vince@kyllikki.org>2018-10-04 17:16:58 +0100
commit99f65f77fdb6cc05ee6272323818de48521b1796 (patch)
tree4acced2c90fbbf3b37b29c5d7975d6cf806cf578 /makefiles/Makefile.tools
parentd0ca2b292d483abc3885f00ae11e4bea49ecd981 (diff)
downloadbuildsystem-99f65f77fdb6cc05ee6272323818de48521b1796.tar.gz
buildsystem-99f65f77fdb6cc05ee6272323818de48521b1796.tar.bz2
ensure fedora gcc gives us all the version info
Diffstat (limited to 'makefiles/Makefile.tools')
-rw-r--r--makefiles/Makefile.tools2
1 files changed, 1 insertions, 1 deletions
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