Re: [AVFS] automake status report
Ralf Hoffmann <[email protected]> Sun, 12 Jun 2005 23:11:55 +0200
| Newsgroups | gmane.comp.file-systems.avfs.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, On 2005-06-10 15:10, Miklos Szeredi wrote: >>I will ask on the libtool mailing list about this problem but I don't >>expect a portable solution to this. I already got answer from the libtool list and it's just as I thought. Using version-script limits the portability to GNU ld and solaris and libtool offers no other options. > Maybe you can conditionally still use the --version-script, if > available (it shouldn't be too hard to detect it in configure.in). > > You could add something like this to Makefile.am: > > libavfs_la_LDFLAGS = @VERSIONSCRIPT_OPTS@ > > And in configure.in conditionally do > > VERSIONSCRIPT_OPTS="-Wl,--version-script,libavfs.map" > AC_SUBST(VERSIONSCRIPT_OPTS) Do you mean to always do symbol renaming and additionally use --version-script if supported? I think this is the best solution and I made the necessary changes so the configure script checks whether the linker support the version-script argument. I implemented the symbol renaming by adding a single file to all 3 libraries which redefines all external symbols. The changes to the other files are minimal so updating any of the libraries shouldn't be a big problem. I will test the code again on the systems I have access to and will finally commit the changes if everything works as expected. Best Regards, Ralf Hoffmann -- Homepage: http://www.boomerangsworld.de E-Mail: Ralf Hoffmann <[email protected]> english or german ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20