cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Fabio M. Di Nitto <fdinitto@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] Fix libdlm static build
Date: Fri, 4 Jul 2008 13:28:11 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0807041320100.27368@trider-g7> (raw)
In-Reply-To: <486DE53D.4090605@redhat.com>

On Fri, 4 Jul 2008, Christine Caulfield wrote:

> Fabio M. Di Nitto wrote:
>> On Fri, 4 Jul 2008, Christine Caulfield wrote:
>> 
>>> Lon Hohberger wrote:
>>>> On Thu, 2008-07-03 at 14:06 +0100, Christine Caulfield wrote:
>>>> 
>>>>> I don't understand the problem you are trying to fix here. Having PIC 
>>>>> objects in the dynamic library and non-PIC in the static is perfectly 
>>>>> standard practice.
>>>>> 
>>>> 
>>>> Well, you can't build a loadable module using a static library w/o
>>>> building PIC.
>>> 
>>> Good. Then build against the dynamic one like you're supposed to!
>> 
>> Generally this is right, we still want to ship a working version of the 
>> static one :)
>
> You still haven't said just what it is that is broken about the static 
> library. Given that my test programs in dlm/tests/usertest all use it, it 
> can't be totally broken surely ??

Just to summarize a bit what we discussed on IRC:

-fPIC changes the way in which the code is generated and built by gcc. So 
building the static version the same way as the shared, will keep it the 
same across. This is important on some architectures like powerpc 
(according to gcc man page).

What lon said in the other email is also a valid point.

As extra bonus:

the makefile becomes simpler and should be possible to collapse like the 
others (didn't check this in details yet since dlm is the only one 
generating more than one shared lib from the same dir.).

I don't dare to say (just kidding here!) that it takes less time to build 
since you will build 50% less objects ;)

Anyway, enough said, it's a trivial change to keep things aligned and I 
see no reason to have libdlm having this special exception.

It's up to David or you (i still don't know who of you owns what in dlm) 
if you want it or not.

Fabio

--
I'm going to make him an offer he can't refuse.



      reply	other threads:[~2008-07-04 11:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-03 11:44 [Cluster-devel] [PATCH] Fix libdlm static build Fabio M. Di Nitto
2008-07-03 13:06 ` Christine Caulfield
2008-07-03 17:49   ` Fabio M. Di Nitto
2008-07-03 17:53   ` Lon Hohberger
2008-07-04  7:20     ` Christine Caulfield
2008-07-04  7:34       ` Fabio M. Di Nitto
2008-07-04  8:54         ` Christine Caulfield
2008-07-04 11:28           ` Fabio M. Di Nitto [this message]

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=Pine.LNX.4.64.0807041320100.27368@trider-g7 \
    --to=fdinitto@redhat.com \
    /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).