Re: Should .a library contains non-reallocatable code?
* Dmitry Katsubo <dma_k@mail.ru>, 2015-02-14, 13:31:
I wonder what is the current state-of-art concerning the code in .a
library (archive for static linking). Should it contain PIC code?
This is what Debian Policy (§10.2) currently says:
“As to the static libraries, the common case is not to have relocatable
code, since there is no benefit, unless in specific cases; therefore the
static version must not be compiled with the ‘-fPIC’ flag. Any
exception to this rule should be discussed on the mailing list
debian-devel@lists.debian.org, and the reasons for compiling with the
‘-fPIC’ flag must be recorded in the file ‘README.Debian’.”
--
Jakub Wilk
Reply to: