1From: Helmut Grohne <>
2Subject: compile build tools with the build architecture compiler
3
4Patch-Source: https://github.com/openexr/openexr/issues/221
5
6Index: ilmbase-2.2.0/configure.ac
7===================================================================
8--- ilmbase-2.2.0.orig/configure.ac
9+++ ilmbase-2.2.0/configure.ac
10@@ -28,6 +28,7 @@
11 AC_PROG_LN_S
12 AC_PROG_LIBTOOL
13 AC_PROG_MAKE_SET
14+AX_PROG_CXX_FOR_BUILD
15
16 dnl
17 dnl PKGCONFIG preparations
18Index: ilmbase-2.2.0/Half/Makefile.am
19===================================================================
20--- ilmbase-2.2.0.orig/Half/Makefile.am
21+++ ilmbase-2.2.0/Half/Makefile.am
22@@ -17,9 +17,11 @@
23
24 CLEANFILES = eLut eLut.h toFloat toFloat.h
25
26-eLut_SOURCES = eLut.cpp
27+eLut$(EXEEXT): eLut.cpp
28+ $(CXX_FOR_BUILD) $(CXXFLAGS_FOR_BUILD) $< -o $@
29
30-toFloat_SOURCES = toFloat.cpp
31+toFloat$(EXEEXT): toFloat.cpp
32+ $(CXX_FOR_BUILD) $(CXXFLAGS_FOR_BUILD) $< -o $@
33
34 eLut.h: eLut
35 ./eLut > eLut.h