Re:Static Linking Considered Harmful (2004)
by jcelerier on Monday September 28, 2020 @01:37PM
(#24619207)
> Didn't see one of the IMO biggest downsides of static linking in that list, which is that there is no sane way to prevent symbol clashes if different components of your application need different versions of the same dependency.
wouldn't symbol versioning allow to do something like this ? it needs a bit of modification of the Lua sources but that can likely be quickly automated with some bash script
wouldn't symbol versioning allow to do something like this ? it needs a bit of modification of the Lua sources but that can likely be quickly automated with some bash script
annotate lua 5 functions definitions to look like
annotate lua 5.1 functions likewise and then in the files which uses Lua 5 put at top level : and conversely VERS_51 for lua 5.1 - now that .o file should resolve to lua_func_v50 or lua_func_v51 when lua_func is called