From: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
To: Paolo Bonzini <pbonzini-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: Re: [PATCH] libfdt: include version number in soname
Date: Wed, 27 Apr 2011 01:19:12 +1000 [thread overview]
Message-ID: <20110426151912.GE6263@yookeroo> (raw)
In-Reply-To: <4DB6A98B.6020107-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
On Tue, Apr 26, 2011 at 01:16:27PM +0200, Paolo Bonzini wrote:
> On 04/26/2011 12:45 PM, David Gibson wrote:
> > Minimally, yes. But I think we can do a bit better. In particular
> > I'd prefer not to tie the soname directly to the dtc version at all.
> > Updates to dtc are only vaguely in sync with libfdt updates, and since
> > we are symbol versioning in libfdt, even pretty significant changes in
> > libfdt won't break backwards compatibility if we do things right.
> >
> > So here's my patch version instead. Jon, please apply.
> >
> > libfdt: include version number in soname
> >
> > From: Paolo Bonzini<pbonzini-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> >
> > The libfdt shared library is only installed by its unversioned name.
> > Including it properly in a distribution requires installation of both
> > the versioned name (used in the binary-only package) and the unversioned
> > name (used in the development package). The latter is just a symbolic
> > link, so you need to change the soname in turn to include the version.
> >
> > While at it, use Makefile variables to shorten some lines and avoid
> > cut-and-paste typos; and clean up remnants of when shared libraries were
> > not supported on Darwin.
> >
> > Signed-off-by: Paolo Bonzini<pbonzini-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> > Signed-off-by: David Gibson<david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
>
> This:
>
> + $(CC) $(LDFLAGS) -fPIC $(SHAREDLIB_LINK_OPTIONS)$(LIBFDT_SONAME) -o $(LIBFDT_lib) $^
>
> should be $(LIBFDT_soname).
Ugh, yes, instead of $(LIBFDT_SONAME) to be clear. I did check the
soname on my build, I must have made an accidental press of M-u after
I did so, sorry.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
next prev parent reply other threads:[~2011-04-26 15:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-21 10:13 [PATCH] libfdt: include version number in soname Paolo Bonzini
[not found] ` <1303380829-16965-1-git-send-email-pbonzini-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-04-25 3:07 ` David Gibson
2011-04-25 18:09 ` Paolo Bonzini
[not found] ` <4DB5B8D0.90802-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-04-26 10:45 ` David Gibson
2011-04-26 11:16 ` Paolo Bonzini
[not found] ` <4DB6A98B.6020107-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-04-26 15:19 ` David Gibson [this message]
2011-04-29 13:48 ` Jon Loeliger
[not found] ` <E1QFo3q-0001O9-IK-CYoMK+44s/E@public.gmane.org>
2011-04-29 14:06 ` Paolo Bonzini
[not found] ` <4DBAC5F0.8050409-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-04-29 14:48 ` Jon Loeliger
[not found] ` <E1QFoza-0001mA-2y-CYoMK+44s/E@public.gmane.org>
2011-04-29 14:50 ` Paolo Bonzini
2011-05-11 14:29 ` Domenico Andreoli
[not found] ` <20110511142953.GA8845-iIV0ii4H0r6tG0bUXCXiUA@public.gmane.org>
2011-05-11 14:36 ` Jon Loeliger
2011-05-11 15:06 ` David Gibson
2011-05-11 15:13 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110426151912.GE6263@yookeroo \
--to=david-xt8fgy+axnrb3ne2bgzf6laj5h9x9tb+@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=pbonzini-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).