2012-11-16 08:23:50 +01:00
|
|
|
From 3f064076c783914cafdff028db303681dae4291d Mon Sep 17 00:00:00 2001
|
2012-11-15 13:28:47 +01:00
|
|
|
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
Date: Thu, 15 Nov 2012 18:31:53 +0100
|
2012-11-16 08:23:50 +01:00
|
|
|
Subject: [PATCH] libXt: util: don't link makestrs with target cflags
|
2012-11-15 13:28:47 +01:00
|
|
|
|
|
|
|
The line:
|
|
|
|
|
2012-11-16 08:23:50 +01:00
|
|
|
AM_CFLAGS = $(XT_CFLAGS)
|
2012-11-15 13:28:47 +01:00
|
|
|
|
|
|
|
in util/Makefile.am is wrong because it adds target cflags to the
|
|
|
|
compilation of makestrs, which is built for the build machine, which
|
|
|
|
leads to build failures when cross-compiling.
|
|
|
|
|
|
|
|
We also remove the inclusion of <X11/Xos.h> from makestrs.c, because
|
|
|
|
it was the only non-standard header being included (and therefore
|
|
|
|
possibly requiring special cflags), but it was in reality not useful
|
|
|
|
at all to build makestrs.c.
|
|
|
|
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
---
|
|
|
|
util/Makefile.am | 1 -
|
|
|
|
util/makestrs.c | 1 -
|
|
|
|
2 files changed, 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/util/Makefile.am b/util/Makefile.am
|
2012-11-16 08:23:50 +01:00
|
|
|
index dedfa6b..cc6f3fc 100644
|
2012-11-15 13:28:47 +01:00
|
|
|
--- a/util/Makefile.am
|
|
|
|
+++ b/util/Makefile.am
|
|
|
|
@@ -10,7 +10,6 @@ EXTRA_DIST = \
|
2012-11-16 08:23:50 +01:00
|
|
|
StrDefs.ht \
|
|
|
|
string.list
|
2012-11-15 13:28:47 +01:00
|
|
|
|
2012-11-16 08:23:50 +01:00
|
|
|
-AM_CFLAGS = $(XT_CFLAGS)
|
2012-11-15 13:28:47 +01:00
|
|
|
makestrs_SOURCES = makestrs.c
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/util/makestrs.c b/util/makestrs.c
|
2012-11-16 08:23:50 +01:00
|
|
|
index a52866a..00c861f 100644
|
2012-11-15 13:28:47 +01:00
|
|
|
--- a/util/makestrs.c
|
|
|
|
+++ b/util/makestrs.c
|
|
|
|
@@ -27,7 +27,6 @@ in this Software without prior written authorization from The Open Group.
|
|
|
|
/* Constructs string definitions */
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
-#include <X11/Xos.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
2012-11-16 08:23:50 +01:00
|
|
|
|
2012-11-15 13:28:47 +01:00
|
|
|
--
|
|
|
|
1.7.9.5
|