692d03b31f93035b3c84acf05350e9126c00b1ef
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / x11r7 / xlib_libXt / 0001-util-don-t-link-makestrs-with-target-cflags.patch
1 From 3f064076c783914cafdff028db303681dae4291d Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Thu, 15 Nov 2012 18:31:53 +0100
4 Subject: [PATCH] libXt: util: don't link makestrs with target cflags
5
6 The line:
7
8 AM_CFLAGS = $(XT_CFLAGS)
9
10 in util/Makefile.am is wrong because it adds target cflags to the
11 compilation of makestrs, which is built for the build machine, which
12 leads to build failures when cross-compiling.
13
14 We also remove the inclusion of <X11/Xos.h> from makestrs.c, because
15 it was the only non-standard header being included (and therefore
16 possibly requiring special cflags), but it was in reality not useful
17 at all to build makestrs.c.
18
19 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
20 ---
21  util/Makefile.am |    1 -
22  util/makestrs.c  |    1 -
23  2 files changed, 2 deletions(-)
24
25 diff --git a/util/Makefile.am b/util/Makefile.am
26 index dedfa6b..cc6f3fc 100644
27 --- a/util/Makefile.am
28 +++ b/util/Makefile.am
29 @@ -10,7 +10,6 @@ EXTRA_DIST = \
30         StrDefs.ht \
31         string.list
32  
33 -AM_CFLAGS = $(XT_CFLAGS)
34  makestrs_SOURCES = makestrs.c
35  
36  
37 diff --git a/util/makestrs.c b/util/makestrs.c
38 index a52866a..00c861f 100644
39 --- a/util/makestrs.c
40 +++ b/util/makestrs.c
41 @@ -27,7 +27,6 @@ in this Software without prior written authorization from The Open Group.
42  /* Constructs string definitions */
43  
44  #include <stdio.h>
45 -#include <X11/Xos.h>
46  #include <stdlib.h>
47  #include <unistd.h>
48  
49 -- 
50 1.7.9.5