Hacker News new | ask | show | jobs
by vchuravy 1147 days ago
Don't ask me about GNU_UNIQUE...

Due to some wonderful C++ features the dynamic linker is forced to unify symbols across shared libraries, even if those symbols have different versions.

This utterly breaks loading multiple libLLVM's except if you build the copy you care about with -no-gnu-unique (or whatever the flag was called)

I have seen wonderful things like the initializers of an already loaded libLLVM being rerun when a new one is loaded.

1 comments

The presume wonderful C++ feature is spelled __attribute__((weak)) in GNU C.