From fde960ec53d57944fc92d36207786115a31b8c49 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Tue, 27 Jun 2017 11:06:14 +0200 Subject: [PATCH] fix cross compilation Even though fontconfig's build system tries to build edit-sgml with the build arch compiler, it gets the runes wrong and actually builds it with the host arch compiler. This patch makes it use the right compiler. Bug-Debian: https://bugs.debian.org/779461 https://bugs.freedesktop.org/show_bug.cgi?id=101554 --- doc/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index 670aa54..2194ab7 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -123,7 +123,10 @@ noinst_PROGRAMS = \ edit_sgml_SOURCES = \ edit-sgml.c \ $(NULL) -edit_sgml_CC := $(CC_FOR_BUILD) +$(edit_sgml_OBJECTS) : CC:=$(CC_FOR_BUILD) +$(edit_sgml_OBJECTS) : CFLAGS:=$(CFLAGS_FOR_BUILD) +$(edit_sgml_OBJECTS) : CPPFLAGS:=$(CPPFLAGS_FOR_BUILD) +edit_sgml_LINK = $(CC_FOR_BUILD) -o $@ # check_SCRIPTS = \ check-missing-doc \ -- 2.13.1