force use of specific Slice libs (cross compiling)
Hello. Currently I am trying to cross-compile Ice, compiling on a RedHat host for an embedded target (Motorola MPC). Works just fine so far, but problems start when it comes to the part in src/Ice. To continue the compilation of Ice a working Slice is required - only that the existing libraries and binaries are in the target's format and not executable on my building host. So I did another Ice build for the building host and adapted the target config/Make.rules to use this "local" Slice for the build process. However, for some reason the slice2cpp executable tries to use the target (cross-compiled) libraries instead of the locally installed ones. I hunted around in the config and make files, but I could not find a specific place to change some paths for Slice. The variables adjusted so far are SLICEPARSERLIB, SLICE2CPP, SLICE2XSD, SLICE2FREEZE and SLICE2DOCBOOK. Where else should I look? Would it be necessary to change CPPFLAGS or ICECPPFLAGS, in other words, the include paths? That would mean to use the source tree of the building host's Ice. Or maybe this is a completely wrong approach at all? I am grateful for any hints about this.