> Ah, ok. So what fails to link is
>
> /* cc test.c -o test -lncurses */
> #include <ncurses.h>
> #include <term.h>
> int main(void) {
> }
>
> is that right?
Yes, and
> /* cc test.c -I/usr/include/ncurses -o test -lncurses */
does not fail.
> > hwloc didn't adjust the include path if ncurses was found,
>
> It'd be a difficult thing to do actually. The ncursesw implementation
> uses ncursesw/ for instance.
Yep - either one has to build configuration information about
all the dependencies into each new tool or there needs to be a way to
query the configuration information of the dependencies themselves.
> > $ ./configure CC=/usr/vac/bin/cc CPPFLAGS="-I/usr/include/ncurses"
> ...
> and this would still work too to get hwloc built against ncurses instead
> of curses.
Yes, that is in fact what's happening in my case.
Carl
|