summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2020-11-11 13:27:23 +0100
committerMarek Szuba <marecki@gentoo.org>2020-11-11 13:46:39 +0100
commitf3188587b9239347c58e9662ab903b2d929038b2 (patch)
tree4c777fe4dd207275ddfd4bfd7a6f88b947edc151 /sys-apps/flashrom
parentmedia-gfx/gnofract4d: remove old 4.3_p20200821 (diff)
downloadgentoo-f3188587b9239347c58e9662ab903b2d929038b2.tar.gz
gentoo-f3188587b9239347c58e9662ab903b2d929038b2.tar.bz2
gentoo-f3188587b9239347c58e9662ab903b2d929038b2.zip
sys-apps/flashrom-1.2-r3: meson: change c_std to from c99 to gnu99
Required on ppc64 (at least) due to the use of asm() in raw-hw-access code. Interestingly enough, there is no mention of either gnu99 or c99 anywhere in the Makefile so it might have worked by pure chance there. Closes: https://bugs.gentoo.org/720210 Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'sys-apps/flashrom')
-rw-r--r--sys-apps/flashrom/files/flashrom-1.2_meson-fixes.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys-apps/flashrom/files/flashrom-1.2_meson-fixes.patch b/sys-apps/flashrom/files/flashrom-1.2_meson-fixes.patch
index a60e4030fca4..bb185fae8223 100644
--- a/sys-apps/flashrom/files/flashrom-1.2_meson-fixes.patch
+++ b/sys-apps/flashrom/files/flashrom-1.2_meson-fixes.patch
@@ -1,5 +1,14 @@
--- a/meson.build
+++ b/meson.build
+@@ -2,7 +2,7 @@
+ version : run_command('util/getversion.sh', '-v').stdout().strip(),
+ license : 'GPL-2.0',
+ meson_version : '>=0.47.0',
+- default_options : ['warning_level=2', 'c_std=c99'],
++ default_options : ['warning_level=2', 'c_std=gnu99'],
+ )
+
+ # libtool versioning
@@ -44,6 +44,7 @@
config_gfxnvidia = get_option('config_gfxnvidia')
config_internal = get_option('config_internal')