diff options
Diffstat (limited to 'meta-oe/recipes-extended/mml-widget/gtkmathview/use_hostcxx.patch')
-rw-r--r-- | meta-oe/recipes-extended/mml-widget/gtkmathview/use_hostcxx.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/mml-widget/gtkmathview/use_hostcxx.patch b/meta-oe/recipes-extended/mml-widget/gtkmathview/use_hostcxx.patch new file mode 100644 index 0000000000..3fe632860f --- /dev/null +++ b/meta-oe/recipes-extended/mml-widget/gtkmathview/use_hostcxx.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | Use build_cc to compile the programs to run on build host | ||
2 | helps with cross compiling | ||
3 | |||
4 | Upstream-Status: Inappropriate [Cross-compiled OE specific] | ||
5 | |||
6 | diff --git a/src/common/mathvariants/Makefile.am b/src/common/mathvariants/Makefile.am | ||
7 | index 636ccf0..ed9921d 100644 | ||
8 | --- a/src/common/mathvariants/Makefile.am | ||
9 | +++ b/src/common/mathvariants/Makefile.am | ||
10 | @@ -52,7 +52,7 @@ XSLTPROC = xsltproc | ||
11 | %.cc : %_gen.cc $(srcdir)/variant.top $(srcdir)/variant.bot | ||
12 | cat $(srcdir)/variant.top >$@ | ||
13 | $(XSLTPROC) --novalid --param temp "false()" $(srcdir)/extract.xsl $(<:%_gen.cc=$(srcdir)/xml/%.xml) >>$@ | ||
14 | - $(CXX) -o $(@:%.cc=%) -I$(top_builddir)/auto $< | ||
15 | + $(BUILD_CXX) -o $(@:%.cc=%) -I$(top_builddir)/auto $< | ||
16 | echo "Char32 " >>$@ | ||
17 | basename map_variant_$@ .cc | tr "-" "_" >>$@ | ||
18 | echo "(Char32 ch)" >>$@ | ||