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
This commit is contained in:
Helmut Grohne 2017-06-27 11:06:14 +02:00 committed by Akira TAGOH
parent 60e1fe550a
commit 5d8ee5231a
1 changed files with 4 additions and 1 deletions

View File

@ -123,7 +123,10 @@ noinst_PROGRAMS = \
edit_sgml_SOURCES = \ edit_sgml_SOURCES = \
edit-sgml.c \ edit-sgml.c \
$(NULL) $(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_SCRIPTS = \
check-missing-doc \ check-missing-doc \