diff options
author | Vincent Sanders <vince@kyllikki.org> | 2018-10-04 17:16:58 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2018-10-04 17:16:58 +0100 |
commit | 99f65f77fdb6cc05ee6272323818de48521b1796 (patch) | |
tree | 4acced2c90fbbf3b37b29c5d7975d6cf806cf578 | |
parent | d0ca2b292d483abc3885f00ae11e4bea49ecd981 (diff) | |
download | buildsystem-99f65f77fdb6cc05ee6272323818de48521b1796.tar.gz buildsystem-99f65f77fdb6cc05ee6272323818de48521b1796.tar.bz2 |
ensure fedora gcc gives us all the version info
-rw-r--r-- | makefiles/Makefile.gcc | 2 | ||||
-rw-r--r-- | 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 |