From 0b80bc9904c8d553c760651daca0c964df052c8b Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Fri, 3 May 2019 08:06:00 +0200
Subject: [PATCH] libXt: util: don't link makestrs with target cflags

The line:

AM_CFLAGS = $(XT_CFLAGS)

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.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
[Retrieved from:
https://git.buildroot.net/buildroot/tree/package/x11r7/xlib_libXt/0001-util-don-t-link-makestrs-with-target-cflags.patch]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 util/Makefile.am | 1 -
 1 file changed, 1 deletion(-)

diff --git a/util/Makefile.am b/util/Makefile.am
index 800b35b..f2dd1f9 100644
--- a/util/Makefile.am
+++ b/util/Makefile.am
@@ -11,7 +11,6 @@ EXTRA_DIST = \
 	StrDefs.ht \
 	string.list
 
-AM_CFLAGS = $(XT_CFLAGS)
 makestrs_SOURCES = makestrs.c
 
 
-- 
GitLab