On 2022-10-29 06:36, Gavin Smith wrote:
Here is one idea. When using a module like 'free-posix', if it is loaded as a dependency only, use the redefinition in Gnulib code only, but do not override symbols in user code. It would be as if there were two modules, say gl-free-posix and free-posix, where gl-free-posix made the redefinition of rpl_gl_free and free-posix (requested by the user) redirected rpl_free to rpl_gl_free.
If it's just 'free', I might prefer the latter solution, to underline the special case and to avoid even more complexity in gnulib-tool. Is that something you could write?
If this problem occurs with lots of other symbols perhaps we'd need something more like the former, though. This would need more hacking, I expect.
