busybox/scripts
Yann E. MORIN d35ba8b5ed kconfig/lxdialog: rationalise the include paths where to find {.n}curses{,w}.h
The current code does this:

    if [ -f /usr/include/ncursesw/curses.h ]; then
        echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncursesw/curses.h>"'
    elif [ -f /usr/include/ncurses/ncurses.h ]; then
        echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"'
    elif [ -f /usr/include/ncurses/curses.h ]; then
        echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"'
    [...]

This is merely inconsistent:
  - adding the full path to the directory in the -I directive,
  - especially since that path is already a sub-path of the system
    include path,
  - and then repeating the sub-path in the #include directive.

Rationalise each include directive:
  - only use the filename in the #include directive,
  - keep the -I directives: they are always searched for before the
    system include path; this ensures the correct header is used.

Using the -I directives and the filename-only in #include is more in
line with how pkg-config behaves, eg.:
    $ pkg-config --cflags ncursesw
    -I/usr/include/ncursesw

This paves the way for using pkg-config for CFLAGS, too, now we use it
to find the libraries.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2016-04-03 23:59:15 -04:00
..
basic typo fixes 2015-05-25 13:46:36 +02:00
kconfig kconfig/lxdialog: rationalise the include paths where to find {.n}curses{,w}.h 2016-04-03 23:59:15 -04:00
bb_release
bloat-o-meter bloat-o-meter: add usage info 2013-10-16 19:18:05 +02:00
checkhelp.awk
checkstack.pl
cleanup_printf2puts typo fix 2010-11-06 22:17:30 +01:00
echo.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
find_bad_common_bufsiz
find_stray_common_vars
find_stray_empty_lines
fix_ws.sh
gcc-version.sh
gen_build_files.sh build system: for "find", use POSIX not operator (!) instead of -not 2014-03-16 12:05:58 +01:00
Kbuild.include
Kbuild.src
Makefile.build build system: specify '-nostldlib' when linking to .o files 2014-04-02 12:12:46 +02:00
Makefile.clean
Makefile.host
Makefile.IMA fix bit rot in scripts/Makefile.IMA #2 2011-03-06 23:48:24 +01:00
Makefile.lib
memusage
mkconfigs build system: use od -b instead of od -t x1 2013-11-26 14:56:29 +01:00
mkdiff_obj scripts/mkdiff_obj: show "size OBJFILE" too 2010-10-29 19:06:20 +02:00
mkdiff_obj_bloat
mkmakefile mkmakefile: make 3.82 fix 2010-10-19 12:49:51 +02:00
objsizes
randomtest randconfig fixes 2015-10-11 16:27:55 +02:00
randomtest.loop fix build breakage found by randconfig 2012-04-20 14:48:00 +02:00
sample_pmap
showasm *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
test_make_clean
test_make_O
trylink trylink: on failure, print a hint about CONFIG_EXTRA_LDLIBS 2016-04-03 15:38:53 +02:00