Hi again,

Axel Beckert wrote:
> > CC -g -O2 -fstack-protector-strong -Wformat -Werror=format-security 
> > -D_FORTIFY_SOURCE=2 -L  -lncurses -ltinfo -Wl,-z,relro ttyclock.c
>                                                                               
>               ^^
[...]
> Reason for this is that the parameter to "-L" is missing and hence
> "-lncurses" is parsed as parameter to "-L", i.e. ignored.
> 
> This comes from this line in the upstream Makefile:
> 
> LDFLAGS := -L $$(ncurses5-config --libdir) $$(ncurses5-config --libs) 
> ${LDFLAGS}
> 
> And "ncurses5-config --libdir" indeed outputs nothing. (No idea why.)

The reason for this can be found in
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745479#31 and
https://anonscm.debian.org/cgit/collab-maint/ncurses.git/tree/debian/patches/03-debian-ncursesconfig-omit-L.diff

Cc'ing Sven Joachim to make him aware of this issue. Maybe this could
be fixed in ncurses itself, e.g. by always outputting "/usr/lib" or such.

                Regards, Axel
-- 
 ,''`.  |  Axel Beckert <a...@debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to