[Top][All Lists]

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

Re: Compilation options for ncurses static library

From: Anssi Hannula
Subject: Re: Compilation options for ncurses static library
Date: Sat, 19 Nov 2005 22:35:52 +0200
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Thomas Dickey wrote:
On Wed, Nov 16, 2005 at 07:44:41PM +0200, Anssi Hannula wrote:

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

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.

There was no change in package, so it could be compiler/linker or some random change in ncurses code which makes it non-PIC without -fPIC. Anyway, thanks for your answer. I had already informed the packager to add -fPIC.

Anssi Hannula

reply via email to

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