summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2017-06-27 11:06:14 +0200
committerAkira TAGOH <akira@tagoh.org>2017-06-27 18:49:20 +0900
commit5d8ee5231ab1ea6f36d3103b4de24712c3ae2f64 (patch)
tree78bb1052a7a962f1bc6fb188795942e580a3685d /doc
parent60e1fe550ae5d945c45a7ad04b46ec78da0309aa (diff)
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
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 670aa54b..2194ab7f 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 \