bug-ncurses
[Top][All Lists]
Advanced

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

Re: linker flags leaked into "ncurses*-config --libs"


From: Thomas Dickey
Subject: Re: linker flags leaked into "ncurses*-config --libs"
Date: Sat, 12 Oct 2019 16:07:43 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Sat, Oct 12, 2019 at 09:22:14PM +0200, Sven Joachim wrote:
> There is a problem with the ncurses*-config script, LDFLAGS from the way
> the library is built are echoed in the "--libs" option:
> 
> ,----
> | $ debian/libncurses-dev/usr/bin/ncurses6-config --libs
> | -Wl,-z,relro -Wl,-z,now -lncurses -ltinfo

hmm - that was intentional (whether it was a Good Thing, we can discuss).

In the past couple of weeks, I was following up on having noticed that
the AdaCurses pc/config files weren't giving the same values, and that
neither did the ncurses pc/config files.  In my builds, I added a script
which compares the two (for each option) and shows a diff.  There's some
difference with rpath "../lib" which I'm considering amending (one shows
the "../lib" while the other does not), but aside from that, the two sets
of files are the same now, given the same $LDFLAGS and $LIBS.

Is this a problem with the specific flags, or with the non -L/-l option?

If it's the specific relro/now flags, I was considering whether I should
filter those out but was uncertain if it was important.  Reading the
description of "now" (earlier in the day...) I suspect that you'd like
that filtered out "now".

Looking at my Debian/testing machine, I see a few other packages
whose ".pc" file gives extra options.  This is from --libs-only-other:

** cally-1.0
-pthread
** clutter-1.0
-pthread
** clutter-cogl-1.0
-pthread
** clutter-egl-1.0
-pthread
** clutter-gdk-1.0
-pthread
** clutter-glx-1.0
-pthread
** clutter-gtk-1.0
-pthread
** clutter-wayland-1.0
-pthread
** clutter-wayland-compositor-1.0
-pthread
** clutter-x11-1.0
-pthread
** cogl-1.0
-pthread
** cogl-2.0-experimental
-pthread
** cogl-gl-1.0
-pthread
** cogl-pango-1.0
-pthread
** cogl-pango-2.0-experimental
-pthread
** cogl-path-1.0
-pthread
** cogl-path-2.0-experimental
-pthread
** gmodule-2.0
-Wl,--export-dynamic -pthread
** gmodule-export-2.0
-Wl,--export-dynamic -pthread
** gmodule-no-export-2.0
-pthread
** gthread-2.0
-pthread
** libbsd-ctor
-Wl,-z,nodlopen -Wl,-u,libbsd_init_func

as well as (for example, from my test-builds)

** form
-Wl,-rpath,../lib:/usr/local/ncurses/lib

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

Attachment: signature.asc
Description: PGP signature


reply via email to

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