A few changes on Paolo's v15, to fix MacOSX build (in fact fix Linux as well) and get rid of $RANDOM:
[05/09] build-sys: introduce common-obj-m and block-obj-m for DSO Add " -undefined dynamic_lookup" to Darwin LDFLAGS. Otherwise the linker complains about undefined symbols. [06/09] module: implement module loading Don't use $RANDOM for stamp symbol generation. Hash version, pkgversion and configure content instead. Add back module-common.c from previous revisions. Reformat module_init macro definition to keep scripts/checkpatch.pl happy. Improve error message when gmodule not present. Fam Zheng (8): rules.mak: fix $(obj) to a real relative path rules.mak: allow per object cflags and libs block: use per-object cflags and libs build-sys: introduce common-obj-m and block-obj-m for DSO module: implement module loading Makefile: install modules with "make install" .gitignore: ignore module related files (dll, so, mo) block: convert block drivers linked with libs to modules Paolo Bonzini (1): darwin: do not use -mdynamic-no-pic .gitignore | 3 ++ Makefile | 30 +++++++++++++- Makefile.objs | 19 ++------- Makefile.target | 21 ++++++++-- block/Makefile.objs | 13 +++++- configure | 79 ++++++++++++++++++++++--------------- include/qemu/module.h | 18 ++++++++- module-common.c | 10 +++++ rules.mak | 80 +++++++++++++++++++++++++++++++------ scripts/create_config | 14 +++++++ util/module.c | 107 +++++++++++++++++++++++++++++++++++++++++++++++++- 11 files changed, 325 insertions(+), 69 deletions(-) create mode 100644 module-common.c -- 1.8.5.2