[igt-dev] [PATCH i-g-t 4/4] meson: Add -fcommon to cc_flags
Lyude
lyude at redhat.com
Mon Mar 16 16:11:32 UTC 2020
From: Lyude Paul <lyude at redhat.com>
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 at redhat.com>
---
meson.build | 1 +
1 file changed, 1 insertion(+)
diff --git a/meson.build b/meson.build
index bcb69e1c..0d7092bd 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
--
2.24.1
More information about the igt-dev
mailing list