<font size=2 face="sans-serif">When building omniorb for a cross target
(ie building on x86 to create a ARM executable). &nbsp;I follow the following
existing steps, but I believe the attached patch can make this cleaner.</font>
<br>
<br><font size=2 face="sans-serif">1) I configure using the cross compiler
defines and point the build at my ARM sysroot</font>
<br><font size=2 face="sans-serif">2) I directly build the tools and place
them for use by the cross build</font>
<br><font size=2 face="sans-serif">${HOST_MAKE_ENV} ${MAKE} CXX=${HOSTCXX}
CC=${HOSTCC} -C src/tool/omkdepend</font>
<br><font size=2 face="sans-serif">cp src/tool/omkdepend/omkdepend bin/</font>
<br><font size=2 face="sans-serif">${HOST_MAKE_ENV} ${MAKE} CXX=${HOSTCXX}
CC=${HOSTCC} -C src/tool/omniidl/cxx/cccp</font>
<br><font size=2 face="sans-serif">${HOST_MAKE_ENV} ${MAKE} CXX=${HOSTCXX}
CC=${HOSTCC} -C src/tool/omniidl/cxx</font>
<br><font size=2 face="sans-serif">3) Then I do a target make and let it
build the cross compiled omniorb.</font>
<br>
<br><font size=2 face="sans-serif">Since the src/tools folder already has
an export and clean capability. &nbsp;By adding a check to the definition
of the CC/CXX/etc defines in beforeauto.mk, we can temporarily override
the cross toolchain to build the tools and install them. &nbsp;ie below</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; $(HOST_MAKE_ENV)
$(MAKE) CXX=$(HOSTCXX) CC=$(HOSTCC) -C src/tool export</font>
<br>
<br><font size=2 face="sans-serif">This is instead of directly building
the source and installing like I did above. &nbsp;See attached for the
patch.</font>
<br>
<br>
<table width=100%>
<tr>
<td width=100% bgcolor=white>
<hr>
<tr valign=top>
<td bgcolor=white><font size=1 face="Verdana"><b>Matthew L Weber</b> /
Sr Software Engineer / Platform SW </font><font size=1 color=blue face="Verdana"><u><br>
</u></font><a href=mailto:mlweber1@rockwellcollins.com><font size=1 color=blue face="Verdana"><u>mlweber1@rockwellcollins.com</u></font></a><font size=1 color=blue face="Verdana"><u><br>
</u></font><a href=http://www.rockwellcollins.com/><font size=1 color=blue face="Verdana"><u>www.rockwellcollins.com</u></font></a><font size=1 face="Verdana">
</font></table>
<br><font size=2 face="sans-serif"><br>
</font>