bug-ncurses
[Top][All Lists]
Advanced

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

Re: Compilation options for ncurses static library


From: Thomas Dickey
Subject: Re: Compilation options for ncurses static library
Date: Sat, 19 Nov 2005 14:54:50 -0500
User-agent: Mutt/1.5.9i

On Wed, Nov 16, 2005 at 07:44:41PM +0200, Anssi Hannula wrote:
> Hi!
> 
> Currently only shared ncurses library is built with -fPIC
> ($CC_SHARED_OPTS in scripts), and static ncurses library is not.

That's normal - compiling with the PIC option imposes a size and performance
penalty.
 
> However, this prevents linking of a shared library to the static ncurses
> on archs that require shared code to be PIC, for example on x86_64.
> 
> Previously this has probably worked by accident (i.e. code was PIC even
> without -fPIC flag), but with ncurses version 5.5 file lib_initscr.o in
> libncurses.a is no more PIC on x86_64 and produces the following error
> when it is tried to link against from a shared library (example from vlc
> compilation):

In this case, it sounds as if you're complaining that a packager changed
options, or that the compiler/linker are changed.  I'm not sure.  There's
nothing that prevents you from setting $CFLAGS to -fPIC and building a
custom version.

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]