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

Ch.10.2 Libraries - shared lib compilation - -fPIC



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 ?
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.

Note: I do not subscribe this mailing list.

Regards
krzysiek


Krzysztof Dudziak
R&D - Software Development Engineer
Tel.: +49 30 31102 8118

Gemalto is now part of the Thales Group.
Please note that my new email address is krzysztof.dudziak@thalesgroup.com

THALES
Gemalto M2M GmbH
Werinherstr. 81, 81541 Munich - Germany
Managing Directors: Andreas Haegele, Sébastien Gallois
registered seat: Munich; commercial register Munich, reg.no.: HRB 172715, WEEE-Reg.-Nr. DE58893809
www.thalesgroup.com












________________________________
 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: