On Fri, Jun 29, 2007 at 10:02:16PM +0200, Sebastian Harl wrote:
> On Thu, Jun 28, 2007 at 12:22:54PM +0200, Frank Lichtenheld wrote:
> > your package failed to build from source, because you tried to link a
> > static library compiled without -fPIC into a shared library compiled
> > with -fPIC. That doesn't work. You will need a version of this static
> > library compiled with -fPIC.
> 
> Policy 10.2 requires static libraries not to be built with -fPIC. This does
> not seem to work on 64bit archs though (is hppa a 64bit architecture)? This
> problem has already been reported (see #358637).
> 
> I'm not quite sure yet if that's a general problem on non 32bit architectures.
> In that case the policy should be changed in this respect. I need to do
> further investigations before.
> 
> To temporarily work around this issue, I will disable the plugins causing that
> kind of problems on hppa (as I'm already doing on other 64bit architectures).

You can build static libraries without -fPIC just fine, you just can link
it together with another object that is compiled with -fPIC. The correct
solution for this is to have a version of the static library compiled with
-fPIC in addition to the one compiled without. We had this in the past for e.g. 
xlibs,
don't know what a current example would be.

i386 doesn't seem to care about the PIC/non-PIC thing, I'm not
toolchain expert enough to tell why. hppa on the other hand is very
picky about it (it is a 32bit architecture, BTW, at least in userland)

Gruesse,
-- 
Frank Lichtenheld <[EMAIL PROTECTED]>
www: http://www.djpig.de/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to