[test-suite] switch Clang driver to default to -fno-common
I've tried recommiting the Clang patch to switch to -fno-common, but
again some of the build bots turned red running the test-suite. After my
first commit, I added -fcommon to CMakeLists.txt for some benchmarks
that need this, see my previous test-suite commit. After the recommit,
and the same tests failing again on some bots, I realised that some bots
use Make, so this adds -fcommon to also their Makefiles.
diff --git a/MultiSource/Applications/JM/ldecod/Makefile b/MultiSource/Applications/JM/ldecod/Makefile
index c7a9705..2cbdcf2 100644
--- a/MultiSource/Applications/JM/ldecod/Makefile
+++ b/MultiSource/Applications/JM/ldecod/Makefile
@@ -1,6 +1,6 @@
LEVEL = ../../../..
PROG = ldecod
-CPPFLAGS = -D __USE_LARGEFILE64 -D _FILE_OFFSET_BITS=64
+CPPFLAGS = -fcommon -D __USE_LARGEFILE64 -D _FILE_OFFSET_BITS=64
LDFLAGS = -lm $(TOOLLINKOPTS)
RUN_OPTIONS = -i $(PROJ_SRC_DIR)/data/test.264 -o Output/test_dec.yuv -r $(PROJ_SRC_DIR)/data/test_rec.yuv
diff --git a/MultiSource/Applications/JM/lencod/Makefile b/MultiSource/Applications/JM/lencod/Makefile
index 6872989..27636c6 100644
--- a/MultiSource/Applications/JM/lencod/Makefile
+++ b/MultiSource/Applications/JM/lencod/Makefile
@@ -1,6 +1,6 @@
LEVEL = ../../../..
PROG = lencod
-CPPFLAGS = -D __USE_LARGEFILE64 -D _FILE_OFFSET_BITS=64
+CPPFLAGS = -fcommon -D __USE_LARGEFILE64 -D _FILE_OFFSET_BITS=64
LDFLAGS = -lm $(TOOLLINKOPTS)
FP_TOLERANCE = 0.025
diff --git a/MultiSource/Benchmarks/ASC_Sequoia/IRSmk/Makefile b/MultiSource/Benchmarks/ASC_Sequoia/IRSmk/Makefile
index e7dd448..89251e6 100644
--- a/MultiSource/Benchmarks/ASC_Sequoia/IRSmk/Makefile
+++ b/MultiSource/Benchmarks/ASC_Sequoia/IRSmk/Makefile
@@ -1,7 +1,8 @@
LEVEL = ../../../..
PROG = IRSmk
-
+
+CFLAGS += -fcommon
LIBS += -lm
LDFLAGS += -lm
RUN_OPTIONS = $(PROJ_SRC_DIR)/irsmk_input
diff --git a/MultiSource/Benchmarks/DOE-ProxyApps-C/miniAMR/Makefile b/MultiSource/Benchmarks/DOE-ProxyApps-C/miniAMR/Makefile
index 57dd37a..a1f728a 100644
--- a/MultiSource/Benchmarks/DOE-ProxyApps-C/miniAMR/Makefile
+++ b/MultiSource/Benchmarks/DOE-ProxyApps-C/miniAMR/Makefile
@@ -1,7 +1,7 @@
LEVEL = ../../../..
PROG = miniAMR
-CPPFLAGS = -I.
+CPPFLAGS = -fcommon -I.
LDFLAGS = -lm
RUN_OPTIONS = --nx 8 --ny 8 --nz 8 --num_tsteps 100
include $(LEVEL)/MultiSource/Makefile.multisrc
diff --git a/MultiSource/Benchmarks/Olden/bh/Makefile b/MultiSource/Benchmarks/Olden/bh/Makefile
index 64e9ec4..d228b43 100644
--- a/MultiSource/Benchmarks/Olden/bh/Makefile
+++ b/MultiSource/Benchmarks/Olden/bh/Makefile
@@ -1,7 +1,7 @@
LEVEL = ../../../..
PROG = bh
-CPPFLAGS = -DTORONTO
+CPPFLAGS = -fcommon -DTORONTO
LDFLAGS = -lm
ifdef LARGE_PROBLEM_SIZE
RUN_OPTIONS = 40000 30
diff --git a/MultiSource/Benchmarks/Prolangs-C/TimberWolfMC/Makefile b/MultiSource/Benchmarks/Prolangs-C/TimberWolfMC/Makefile
index d31c6a0..f90db43 100644
--- a/MultiSource/Benchmarks/Prolangs-C/TimberWolfMC/Makefile
+++ b/MultiSource/Benchmarks/Prolangs-C/TimberWolfMC/Makefile
@@ -1,5 +1,6 @@
LEVEL = ../../../..
+CPPFLAGS += -fcommon
PROG = timberwolfmc
LDFLAGS=-lm
include $(LEVEL)/MultiSource/Makefile.multisrc
diff --git a/MultiSource/Benchmarks/Prolangs-C/compiler/Makefile b/MultiSource/Benchmarks/Prolangs-C/compiler/Makefile
index f20fe6a..1fa7cf6 100644
--- a/MultiSource/Benchmarks/Prolangs-C/compiler/Makefile
+++ b/MultiSource/Benchmarks/Prolangs-C/compiler/Makefile
@@ -1,5 +1,6 @@
LEVEL = ../../../..
+CPPFLAGS = -fcommon
PROG = compiler
#STDIN_FILENAME = $(SourceDir)/testset
include $(LEVEL)/MultiSource/Makefile.multisrc
diff --git a/MultiSource/Benchmarks/Prolangs-C/loader/Makefile b/MultiSource/Benchmarks/Prolangs-C/loader/Makefile
index 8e57853..a412825 100644
--- a/MultiSource/Benchmarks/Prolangs-C/loader/Makefile
+++ b/MultiSource/Benchmarks/Prolangs-C/loader/Makefile
@@ -1,5 +1,6 @@
LEVEL = ../../../..
+CPPFLAGS = -fcommon
LDFLAGS = -lm
PROG = loader
include $(LEVEL)/MultiSource/Makefile.multisrc
diff --git a/MultiSource/Benchmarks/Prolangs-C/simulator/Makefile b/MultiSource/Benchmarks/Prolangs-C/simulator/Makefile
index ae3eede..8ad14d5 100644
--- a/MultiSource/Benchmarks/Prolangs-C/simulator/Makefile
+++ b/MultiSource/Benchmarks/Prolangs-C/simulator/Makefile
@@ -1,5 +1,6 @@
LEVEL = ../../../..
+CPPFLAGS = -fcommon
PROG = simulator
LDFLAGS = -lm
include $(LEVEL)/MultiSource/Makefile.multisrc