[PATCH] nptl: proper soname handling
Kevin Day
thekevinday at gmail.com
Sat Apr 24 00:36:17 UTC 2010
On 4/23/10, Austin Foxley <austinf at cetoncorp.com> wrote:
> On 04/23/2010 07:18 AM, Timo Teräs wrote:
> > Austin Foxley wrote:
> >> On 04/20/2010 07:49 AM, Natanael Copa wrote:
> >>> Since sublevel releases are not ABI compatible we need to adjust
> >>> the soname to include the sublevel version.
> >>>
> >>> This makes it possible to install ABI incompatible versions of the
> >>> library side by side so clean upgrades are possible.
> >>
> >> Applied, minus the mistaken LDFLAGS hunk
> >
> > It might be useful to do:
> >
> > -ABI_VERSION := $(VERSION)
> > +ABI_VERSION := $(MAJOR_VERSION)
> >
> > Since it seems that ld.so soname is hardcoded in GCC. If you want to
> > use something else than /lib/ld-uClibc.so.0 as dynamic linker, you also
> > need to update GCC default configration, create alternate specfile
> > overriding the hardcoded -dynamic-linker, or pass-in
> > -Wl,-dynamic-linker,...
> > when compiling.
>
>
> Hmm, I didn't realize GCC hardcoded that. I'll push a fix.
>
>
> -Austin
I have a gcc patch that gives compile time freedom to do just that.
This patch is sort of hackish, but gets all archs I was able to find
at the time.
It adds 3 configure commands:
--with-dynamic-linker=$PATH
--with-dynamic-linker-prefix=$PATH
--with-nostdinc
The dynamic-linker is the linker name, such as ld-uClibc.so.0
The prefix one allows one to dynamically at configure time set either
'/lib' or '/lib64'
The nostdinc tells gcc to ignore standard includes during compile time
The attached patch is against gcc-4.4.3
--
Kevin Day
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-4.4.3-dynamic_linker_prefix_specs-2.patch
Type: application/octet-stream
Size: 18567 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20100423/360f3039/attachment-0001.obj>
More information about the uClibc
mailing list