summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/spice/files
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2018-05-11 19:21:39 +0000
committerArmin Kuster <akuster808@gmail.com>2018-05-17 08:32:26 -0700
commitb379fcebf988b1c37950e10fa32fa0ffccd61013 (patch)
tree0c20dc8dde424c94e4393fb8245f00fc0a30b830 /meta-networking/recipes-support/spice/files
parent7598d49f6ec80a1e1e87244fc66f1a75b760d8b7 (diff)
downloadmeta-openembedded-b379fcebf988b1c37950e10fa32fa0ffccd61013.tar.gz
spice: fix build with FORTIFY_SOURCES already defined in native gcc
* e.g. on gentoo hosts * use 4 spaces for indentation Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support/spice/files')
-rw-r--r--meta-networking/recipes-support/spice/files/0001-spice-compile-warnings.m4-don-t-define-FORITFY_SOURC.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/spice/files/0001-spice-compile-warnings.m4-don-t-define-FORITFY_SOURC.patch b/meta-networking/recipes-support/spice/files/0001-spice-compile-warnings.m4-don-t-define-FORITFY_SOURC.patch
new file mode 100644
index 0000000000..666960566b
--- /dev/null
+++ b/meta-networking/recipes-support/spice/files/0001-spice-compile-warnings.m4-don-t-define-FORITFY_SOURC.patch
@@ -0,0 +1,37 @@
1From bf85d26f0326d4ea20429c29fd408703ee5bad54 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Wed, 13 Sep 2017 15:53:02 +0200
4Subject: [PATCH] spice-compile-warnings.m4: don't define FORITFY_SOURCES
5
6* otherwise fails when the native gcc already defines
7 FORTIFY_SOURCES (e.g. in gentoo).
8 | In file included from ../../git/server/inputs_channel.c:19:0:
9 | ../config.h:17:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
10 | # define _FORTIFY_SOURCE 2
11
12Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
13---
14 m4/spice-compile-warnings.m4 | 7 -------
15 1 file changed, 7 deletions(-)
16
17diff --git a/m4/spice-compile-warnings.m4 b/m4/spice-compile-warnings.m4
18index 959971a2..55352ad6 100644
19--- a/m4/spice-compile-warnings.m4
20+++ b/m4/spice-compile-warnings.m4
21@@ -109,13 +109,6 @@ AC_DEFUN([SPICE_COMPILE_WARNINGS],[
22 # This should be < 1024 really. pixman_utils is the blackspot
23 # preventing lower usage
24 gl_WARN_ADD([-Wframe-larger-than=20460])
25-
26- # Use improved glibc headers
27- AH_VERBATIM([FORTIFY_SOURCE],
28- [/* Enable compile-time and run-time bounds-checking, and some warnings. */
29-#if __OPTIMIZE__
30-# define _FORTIFY_SOURCE 2
31-#endif
32 ])
33
34 # Extra special flags
35--
362.14.1
37