summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLyude Paul <lyude@redhat.com>2020-03-16 12:11:32 -0400
committerPetri Latvala <petri.latvala@intel.com>2020-03-20 14:25:23 +0200
commit7d2ad0888018ffa6e0acd460a6fad14c08c92c46 (patch)
tree221c6089b785368ead731c413bd2422bcf5cfa5a
parent6944f6515a9d2b46b2ec7dfd7bdb5153ea819d63 (diff)
meson: Add -fcommon to cc_flags
Now that we've fixed a bunch of build breakages on systems where -fcommon is the default (gcc 10+), let's start building with -fcommon by default so we can make sure things don't break with this in the future. Supposedly it's supposed to be able to generate better code anyway! Signed-off-by: Lyude Paul <lyude@redhat.com> Acked-by: Petri Latvala <petri.latvala@intel.com>
-rw-r--r--meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index bcb69e1c7..0d7092bde 100644
--- a/meson.build
+++ b/meson.build
@@ -70,6 +70,7 @@ cc_args = [
# well with longjmp which is heavily used by IGT framework.
'-fno-builtin-malloc',
'-fno-builtin-calloc',
+ '-fcommon',
]
foreach cc_arg : cc_args