RE: Ch.10.2 Libraries - shared lib compilation - -fPIC
Thanks for feedback from you.
> > Isn't it that way for shared libraries IN GENERAL to need be compiled
> > as position-independent code then linked as such ?
> Not in theory.
Ansgar kindly elaborated the point bit more so I can feel the background. Thanks to Ansgar too : )
Among all cases being constituting pointed statement any one
in active use currently, e.g. because contemporary and good alternative for PIC-concept?
> > In my understanding chapter's text in its current form suggests
> > application of -fPIC thus that one of position-independent code to be of
> > narrower scope than originally.
> That section talks about mandating -fPIC, not about narrowing its scope.
From that one sentence myself gets feedback it was aspiring to make reproduction of
-fPIC description fragments.
krzysiek
> -----Original Message-----
> From: Andrey Rahmatullin [mailto:wrar@debian.org]
> Sent: Thursday, 23. May 2019 13:45
> To: Dudziak Krzysztof <Krzysztof.Dudziak@gemalto.com>
> Cc: debian-policy@lists.debian.org
> Subject: Re: Ch.10.2 Libraries - shared lib compilation - -fPIC
>
> On Thu, May 23, 2019 at 10:50:08AM +0000, Dudziak Krzysztof wrote:
> > Hi,
> >
> > I have troubles on comprehending following statement "If the package
> > is architecture: any, then the shared library compilation and linking flags must
> have -fPIC.."
> > Cit. Debian Policy, chapter 10.2,
> > https://www.debian.org/doc/debian-policy/ch-files.html#s-libraries
> >
> > I have little to zero shared libraries expertise. All I was lucky to
> > learn about shared libraries was with GNU libtool, GNU autotools, pkgconf in
> background.
> >
> > Isn't it that way for shared libraries IN GENERAL to need be compiled
> > as position-independent code then linked as such ?
> Not in theory.
>
> > In my understanding chapter's text in its current form suggests
> > application of -fPIC thus that one of position-independent code to be of
> narrower scope than originally.
> That section talks about mandating -fPIC, not about narrowing its scope.
>
> --
> WBR, wRAR
________________________________
This message and any attachments are intended solely for the addressees and may contain confidential information. Any unauthorized use or disclosure, either whole or partial, is prohibited.
E-mails are susceptible to alteration. Our company shall not be liable for the message if altered, changed or falsified. If you are not the intended recipient of this message, please delete it and notify the sender.
Although all reasonable efforts have been made to keep this transmission free from viruses, the sender will not be liable for damages caused by a transmitted virus.
Reply to: