On Thu, 09/05 18:20, Fam Zheng wrote: > This series implements feature of shared object building as described in: > > http://wiki.qemu.org/Features/Modules > > It's achieved in three steps, with extra bonus to change curl to a shared > library module in the end (only to demonstrate the usage, no "make install" > support of .so files yet). > > 1. Allow per object cflags and libs: > > [01/06] make.rule: fix $(obj) to a real relative path > [02/06] rule.mak: allow per object cflags and libs > > 2. Rules for building .so: > > [03/06] Makefile: define curl cflags and libs with object
Sorry, misleading. 04 should be this step, 03, 06 is for curl enablement. > > 3. Code to load module. All .so files are scanned and loaded when program > starts: > > [04/06] Makefile: introduce common-obj-m and block-obj-m for DSO > And this should be patch 05. > 4. curl adoption: > > [05/06] module: load modules at start > [06/06] curl: build as shared library >