Merge tag 'kbuild-fixes-6.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux

Pull kbuild fixes from Nicolas Schier:

- Reduce possible complications when cross-compiling by increasing use
of ${NM} in check-function-names.sh

- Fix static linking of nconf

* tag 'kbuild-fixes-6.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux:
kconfig: fix static linking of nconf
kbuild: prefer ${NM} in check-function-names.sh

+7 -6
+1 -1
scripts/check-function-names.sh
··· 13 exit 1 14 fi 15 16 - bad_symbols=$(nm "$objfile" | awk '$2 ~ /^[TtWw]$/ {print $3}' | grep -E '^(startup|exit|split|unlikely|hot|unknown)(\.|$)') 17 18 if [ -n "$bad_symbols" ]; then 19 echo "$bad_symbols" | while read -r sym; do
··· 13 exit 1 14 fi 15 16 + bad_symbols=$(${NM:-nm} "$objfile" | awk '$2 ~ /^[TtWw]$/ {print $3}' | grep -E '^(startup|exit|split|unlikely|hot|unknown)(\.|$)') 17 18 if [ -n "$bad_symbols" ]; then 19 echo "$bad_symbols" | while read -r sym; do
+6 -5
scripts/kconfig/nconf-cfg.sh
··· 6 cflags=$1 7 libs=$2 8 9 - PKG="ncursesw menuw panelw" 10 - PKG2="ncurses menu panel" 11 12 if [ -n "$(command -v ${HOSTPKG_CONFIG})" ]; then 13 if ${HOSTPKG_CONFIG} --exists $PKG; then ··· 29 # find ncurses by pkg-config.) 30 if [ -f /usr/include/ncursesw/ncurses.h ]; then 31 echo -D_GNU_SOURCE -I/usr/include/ncursesw > ${cflags} 32 - echo -lncursesw -lmenuw -lpanelw > ${libs} 33 exit 0 34 fi 35 36 if [ -f /usr/include/ncurses/ncurses.h ]; then 37 echo -D_GNU_SOURCE -I/usr/include/ncurses > ${cflags} 38 - echo -lncurses -lmenu -lpanel > ${libs} 39 exit 0 40 fi 41 42 if [ -f /usr/include/ncurses.h ]; then 43 echo -D_GNU_SOURCE > ${cflags} 44 - echo -lncurses -lmenu -lpanel > ${libs} 45 exit 0 46 fi 47
··· 6 cflags=$1 7 libs=$2 8 9 + # Keep library order for static linking (HOSTCC='cc -static') 10 + PKG="menuw panelw ncursesw" 11 + PKG2="menu panel ncurses" 12 13 if [ -n "$(command -v ${HOSTPKG_CONFIG})" ]; then 14 if ${HOSTPKG_CONFIG} --exists $PKG; then ··· 28 # find ncurses by pkg-config.) 29 if [ -f /usr/include/ncursesw/ncurses.h ]; then 30 echo -D_GNU_SOURCE -I/usr/include/ncursesw > ${cflags} 31 + echo -lmenuw -lpanelw -lncursesw > ${libs} 32 exit 0 33 fi 34 35 if [ -f /usr/include/ncurses/ncurses.h ]; then 36 echo -D_GNU_SOURCE -I/usr/include/ncurses > ${cflags} 37 + echo -lmenu -lpanel -lncurses > ${libs} 38 exit 0 39 fi 40 41 if [ -f /usr/include/ncurses.h ]; then 42 echo -D_GNU_SOURCE > ${cflags} 43 + echo -lmenu -lpanel -lncurses > ${libs} 44 exit 0 45 fi 46