Am Thu, 14 Nov 2013 21:35:22 +0100 schrieb Johannes Pfau <[email protected]>:
> AFAIK you can't put shared libraries into a different folder. > The runtime linker must be able to find the libraries so the folders > have to be registered in ld.so.conf. But ld 'virtually merges' all > directories so you still can't have libraries with the same name & > version in different folders. There are some tricks (rpath, > LD_LIBRARY_PATH) but this won't work well in a large scale scenario. That explains why Haskell's Cabal is installing libraries with compiler AND library version in the file name :-/ > In the end all D compilers have to produce ABI compatible > shared libraries. The runtime implementation may be different, but the > ABI has to match. Unfortunately ABI compatibility is still in a distant > future but there's no other way to solve the library issue. That would be helpful. In the meantime I'll read up on how dynamic linking works and what options I have. -- Marco
