Subject: pkg/25834: libtool with -prefer-non-pic tries to create shared objects from non-PIC code on Solaris
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <grant@NetBSD.org>
List: pkgsrc-bugs
Date: 06/06/2004 13:07:41
>Number: 25834
>Category: pkg
>Synopsis: libtool with -prefer-non-pic tries to create shared objects from non-PIC code on Solaris
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 06 03:11:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: grant beattie
>Release: SunOS 5.9
>Organization:
>Environment:
System: SunOS u10 5.9 Generic_117171-02 sun4u sparc SUNW,Ultra-5_10
Architecture: sparc
Machine: sun4u
>Description:
audio/liba52 passes -prefer-non-pic to libtool, presumably to get a
bit of a speed increase from linking non-PIC code into a shared
library on platforms where this is OK.
this is not OK on Solaris, and shared objects must be linked from PIC
code.
>How-To-Repeat:
build audio/liba52 on Solaris and observe the linker relocation
errors.
>Fix:
on Solaris, even when -prefer-non-pic is passed, libtool should always
pass the right flag to the compiler to generate PIC code when a shared
object is to be built.
>Release-Note:
>Audit-Trail:
>Unformatted: