Hi, I have a problem about symbol collisions in shared librarys. I currently porting the build process of a shared library to libtool and the build itself works so far. The library uses a modified zlib implementation so the final library contains zlib symbols. In the old build process the linker was called with -version-script option using a script marking some symbols global and all other (include the zlib symbols) local.
Since libtool doesn't offer this option I used the option -export-symbol-regex so only the global symbols are exported at all. But the result doesn't work correctly. Obviously the other symbols are not defined local but are removed from the symbol table. However, the dynamic loader messes up these symbols when an application is linked with this library and the system wide zlib library. Only explicitly defining the symbols local prevents the linker from choosing the wrong symbols but it looks like the linker option "-version-script" only exists in GNU ld and solaris ld so this is not very portable. Do you know of any other solution than renaming all symbols of the own zlib verion? Best Regards, Ralf Hoffmann -- Homepage: http://www.boomerangsworld.de E-Mail: Ralf Hoffmann <[EMAIL PROTECTED]> english or german _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool