On 02/01/2011 07:10 PM, Blue Swirl wrote:
One way to solve this which would preserve the device model would be to add stub devices. For example, hw/vmmouse-stub.c would be: void *vmmouse_init(void *m) { return NULL; }
This is the wrong direction, unless you can somehow automatically generate the stub file.
The only other solution I can think of is weak symbols. There are subtle differences between Windows and Linux weak symbols, but luckily we do not care about it. See http://cygwin.com/ml/cygwin/2010-04/msg00281.html
Paolo