On Tue, Mar 26, 2019 at 10:32:34AM +0000, Jerin Jacob Kollanukkaran wrote: > On Mon, 2019-03-25 at 23:02 -0700, Anand Rawat wrote: > > adding a DEF file for kvargs to specify the exports > > for the creation of the shared library. > > > > Signed-off-by: Bruce Richardson <bruce.richard...@intel.com> > > Signed-off-by: Anand Rawat <anand.ra...@intel.com> > > Reviewed-by: Pallavi Kadam <pallavi.ka...@intel.com> > > Reviewed-by: Ranjit Menon <ranjit.me...@intel.com> > > --- > > lib/librte_kvargs/rte_kvargs_exports.def | 7 +++++++ > > 1 file changed, 7 insertions(+) > > create mode 100644 lib/librte_kvargs/rte_kvargs_exports.def > > > > diff --git a/lib/librte_kvargs/rte_kvargs_exports.def > > b/lib/librte_kvargs/rte_kvargs_exports.def > > new file mode 100644 > > index 000000000..265d3cc9a > > --- /dev/null > > +++ b/lib/librte_kvargs/rte_kvargs_exports.def > > Maintaining two separate files (.map and .def) for shared > library definition will be pain full. >
Yes, though I'd question how much more painful it is than having to update a separate map file anyway - just consider the number of patches that have been submitted over the years which failed shared library build because map file updates were forgotten. However, my hope is that down the road we can have the def file generated from the map file (or potentially vice versa). Perhaps the meson python module could be used to allow us to script it a bit. > # Is it possible to add neutral file format if windows is not happy > with .map file? > # I am not sure, How we can express "EXPERIMENTAL" tag with .def file. > # It is good to check, How OTHER cross platform libraries addressing > this problem > A wider question is whether it is possible at all to have ABI versions associated with functions? I didn't find any mention of it in the documentations, and if it's not possible, then the question of how to put an experimental version is moot, I think. /Bruce