|
From: Gene S. <gs...@ab...> - 2002-01-07 19:19:50
|
"Wesley W. Terpstra" wrote: > > Problem 1: > > The libraries built right now are not relocatable. I'm not entirely sure > what this does, but from packaging libraries before I know that it is > supposed to be done. :-) > A few points on Problem 1. - As far as I know, on many platforms (e.g., Solaris, Irix, and *Linux*) compiler emits position-independent code by default. So there is no need for -fpic/-fPIC flag. Often these flags are used "just in case", but it doesn't mean they are always needed. - According to gcc man page, -fPIC is a superset of -fpic, so you don't need both of them (if you need them at all). - It's OK to have relocatable objects in an ar archive (.a). So there is no need to compile twice. |