Feature request: Exporting symbols from static libraries linked with executable/dll
We (cling/ROOT projects on Windows) would need to export symbols coming not only from object files, but also from static (e.g. system) libraries from our executable, and to do so, we would need to pass one (or more) .def files containing the list of symbols to export. Since the MS linker only support one single .def file, would it be possible for us to specify one (or more) extra .def file in a CMakeLists.txt and let CMake to somehow merge them into the final generated one (exportall.def)? Something like this:
if(MSVC)
set_target_properties(cling PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS 1)
set_property(TARGET cling APPEND_STRING PROPERTY DEF_FILES " filename1.def filename2.def ... filenameN.def ")
endif(MSVC)
And this would somehow merge filename1.def, filename2.def ... filenameN.def into the exportall.def (generated by WINDOWS_EXPORT_ALL_SYMBOLS) and then passed to the linker...
That would be very useful. Thanks in advance!
Cheers, Bertrand.