[csw-maintainers] Symlinks to shared libraries
Maciej (Matchek) Blizinski
maciej at opencsw.org
Wed Nov 25 13:21:38 CET 2009
On Wed, Nov 25, 2009 at 11:54 AM, Maciej (Matchek) Blizinski
<maciej at opencsw.org> wrote:
> On Wed, Nov 25, 2009 at 11:43 AM, James Lee <james at opencsw.org> wrote:
>> It's not about CSW policy but how ld and ld.so.1 work and versioning.
>> What's the SONAME?
>
> $ /.SUNWnative/usr/sfw/bin/gobjdump -p
> work/solaris8-sparc/install-isa-sparcv8/opt/csw/lib/libnspr4.so.8 |
> grep SONAME
> SONAME libnspr4.so
>
> This means applications will be linked against libnspr4.so no matter
> which is the symlink and which is the regular file, right?
Gentoo injects a custom SONAME via a gcc flag[1]:
--- mozilla/nsprpub/configure.orig 2006-01-14 22:41:37.000000000 +0000
+++ mozilla/nsprpub/configure 2006-01-14 22:49:14.000000000 +0000
@@ -3893,7 +3893,7 @@
PR_MD_CSRCS=linux.c
MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
DSO_CFLAGS=-fPIC
- DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
+ DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@).$(MOD_MINOR_VERSION)'
_OPTIMIZE_FLAGS=-O2
_DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb, and that
Can we do the same in Sun Studio?
[1] http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/files/nspr-4.6.1-config-1.patch?rev=1.1&view=markup
More information about the maintainers
mailing list