Hi Andy,
> On Mar 29, 2016, at 12:22 PM, Andy Rudoff <
an...@rudoff.com> wrote:
>
> To add to what Krzysztof wrote: the history of the sed line is that the map file only applies to shared libraries, so I wanted to make sure that non-static symbols in the library (i.e. because of a call from one .c file in the library to another .c file in the library) were scoped out. Since the map file didn't apply to the .a we build, I found I could pass the list of symbols to the linker using the -G option (combined with an option to hide other symbols by default).
Thanks for clarifying. Once I started working on the dynamic library part of the makefile, I saw the other use of the .map file.
> That said, the requirement for static linking may not apply to the platform you're porting to, and the way of scoping symbols out is of course tool chain dependent. But as the libraries are implemented today, we expect all our unit tests to pass on both the shared-library and static versions.
Are you folks considering autoconfiscating and libtooling the nvml? That would greatly ease porting to non-GNU toolchains and non-GNU make, for example the BSD's.