[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Warning: "/usr/include/ncursesw" is unsafe for cross-compilation
From: |
Thomas Dickey |
Subject: |
Re: Warning: "/usr/include/ncursesw" is unsafe for cross-compilation |
Date: |
Sat, 13 Sep 2014 17:52:52 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Fri, Sep 12, 2014 at 09:52:10AM +0200, Joakim Tjernlund wrote:
> In Gentoo[1] one can see this warning when cross building ncurses with
> unicode support:
> cc1: warning: include location "/usr/include/ncursesw" is unsafe for
> cross-compilation [-Wpoison-system-directories]
> This is because ncurses adds -I\${includedir} to CPPFLAGS, simply removing
Actually, the --includedir option is used to override the program's sense
of where the essential system headers are - if they are not in the default
location used by the compiler.
Setting the option to point to the default location - or as shown in the bug
report,
to a redundant location - is pointless.
For cross-compiling, there are some valid issues with the sample scripts which
I use
for making packages. However, there has been no feedback that I recall from
any packager
regarding those scripts, so I have not discussed those issues (they're simply
to-do items
on my list (>1500 items...).
> this makes it build
> without this warning.
sometimes.
> [1] https://bugs.gentoo.org/show_bug.cgi?id=522586
>
> Jocke
>
> PS.
> Why are there no proper releases of ncurses? I can just find a lot of
> patches
I intend doing a regular release when I'm done with the MinGW port.
(Packagers can pick up the patches, of course - even Gentoo).
> Is the a public repo somewhere?
Someone keeps a git repository, as noted here:
https://lists.gnu.org/archive/html/bug-ncurses/2010-07/msg00021.html
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature