[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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

Attachment: signature.asc
Description: PGP signature


Reply to: