aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-02-07 13:01:43 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-02-07 13:01:43 -0500
commiteeb059e0a69369753b3e45426958f751f0b8fc89 (patch)
tree311290c94e692a7495c71c9f62ab2c239b1470de
parentc03296a868ae7c91aa2d8b372184763b18f16d7a (diff)
parent8c7f75d3257fe466b34abf290c8b177c106c3769 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-bugfix
-rw-r--r--Makefile2
-rw-r--r--arch/cris/Makefile2
-rw-r--r--scripts/kconfig/lxdialog/Makefile7
-rw-r--r--scripts/kconfig/lxdialog/check-lxdialog.sh14
4 files changed, 16 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index cd5b619db9d8..a1158d1c051e 100644
--- a/Makefile
+++ b/Makefile
@@ -442,7 +442,7 @@ export KBUILD_DEFCONFIG
442config %config: scripts_basic outputmakefile FORCE 442config %config: scripts_basic outputmakefile FORCE
443 $(Q)mkdir -p include/linux 443 $(Q)mkdir -p include/linux
444 $(Q)$(MAKE) $(build)=scripts/kconfig $@ 444 $(Q)$(MAKE) $(build)=scripts/kconfig $@
445 $(Q)$(MAKE) .kernelrelease 445 $(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease
446 446
447else 447else
448# =========================================================================== 448# ===========================================================================
diff --git a/arch/cris/Makefile b/arch/cris/Makefile
index ea65d585cf5e..ee114699ef8e 100644
--- a/arch/cris/Makefile
+++ b/arch/cris/Makefile
@@ -119,7 +119,7 @@ $(SRC_ARCH)/.links:
119 @ln -sfn $(SRC_ARCH)/$(SARCH)/lib $(SRC_ARCH)/lib 119 @ln -sfn $(SRC_ARCH)/$(SARCH)/lib $(SRC_ARCH)/lib
120 @ln -sfn $(SRC_ARCH)/$(SARCH) $(SRC_ARCH)/arch 120 @ln -sfn $(SRC_ARCH)/$(SARCH) $(SRC_ARCH)/arch
121 @ln -sfn $(SRC_ARCH)/$(SARCH)/vmlinux.lds.S $(SRC_ARCH)/kernel/vmlinux.lds.S 121 @ln -sfn $(SRC_ARCH)/$(SARCH)/vmlinux.lds.S $(SRC_ARCH)/kernel/vmlinux.lds.S
122 @ln -sfn $(SRC_ARCH)/$(SARCH)/asm-offsets.c $(SRC_ARCH)/kernel/asm-offsets.c 122 @ln -sfn $(SRC_ARCH)/$(SARCH)/kernel/asm-offsets.c $(SRC_ARCH)/kernel/asm-offsets.c
123 @touch $@ 123 @touch $@
124 124
125# Create link to sub arch includes 125# Create link to sub arch includes
diff --git a/scripts/kconfig/lxdialog/Makefile b/scripts/kconfig/lxdialog/Makefile
index fae3e29fc924..bbf4887cff74 100644
--- a/scripts/kconfig/lxdialog/Makefile
+++ b/scripts/kconfig/lxdialog/Makefile
@@ -2,8 +2,11 @@
2# 2#
3 3
4check-lxdialog := $(srctree)/$(src)/check-lxdialog.sh 4check-lxdialog := $(srctree)/$(src)/check-lxdialog.sh
5HOST_EXTRACFLAGS:= $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) 5
6HOST_LOADLIBES := $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) 6# Use reursively expanded variables so we do not call gcc unless
7# we really need to do so. (Do not call gcc as part of make mrproper)
8HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags)
9HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
7 10
8HOST_EXTRACFLAGS += -DLOCALE 11HOST_EXTRACFLAGS += -DLOCALE
9 12
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh
index 448e353923f3..120d624e672c 100644
--- a/scripts/kconfig/lxdialog/check-lxdialog.sh
+++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
@@ -4,17 +4,17 @@
4# What library to link 4# What library to link
5ldflags() 5ldflags()
6{ 6{
7 echo "main() {}" | $cc -lncursesw -xc - -o /dev/null 2> /dev/null 7 $cc -print-file-name=libncursesw.so | grep -q /
8 if [ $? -eq 0 ]; then 8 if [ $? -eq 0 ]; then
9 echo '-lncursesw' 9 echo '-lncursesw'
10 exit 10 exit
11 fi 11 fi
12 echo "main() {}" | $cc -lncurses -xc - -o /dev/null 2> /dev/null 12 $cc -print-file-name=libncurses.so | grep -q /
13 if [ $? -eq 0 ]; then 13 if [ $? -eq 0 ]; then
14 echo '-lncurses' 14 echo '-lncurses'
15 exit 15 exit
16 fi 16 fi
17 echo "main() {}" | $cc -lcurses -xc - -o /dev/null 2> /dev/null 17 $cc -print-file-name=libcurses.so | grep -q /
18 if [ $? -eq 0 ]; then 18 if [ $? -eq 0 ]; then
19 echo '-lcurses' 19 echo '-lcurses'
20 exit 20 exit
@@ -36,10 +36,13 @@ ccflags()
36 fi 36 fi
37} 37}
38 38
39compiler="" 39# Temp file, try to clean up after us
40tmp=.lxdialog.tmp
41trap "rm -f $tmp" 0 1 2 3 15
42
40# Check if we can link to ncurses 43# Check if we can link to ncurses
41check() { 44check() {
42 echo "main() {}" | $cc -xc - -o /dev/null 2> /dev/null 45 echo "main() {}" | $cc -xc - -o $tmp 2> /dev/null
43 if [ $? != 0 ]; then 46 if [ $? != 0 ]; then
44 echo " *** Unable to find the ncurses libraries." 1>&2 47 echo " *** Unable to find the ncurses libraries." 1>&2
45 echo " *** make menuconfig require the ncurses libraries" 1>&2 48 echo " *** make menuconfig require the ncurses libraries" 1>&2
@@ -59,6 +62,7 @@ if [ $# == 0 ]; then
59 exit 1 62 exit 1
60fi 63fi
61 64
65cc=""
62case "$1" in 66case "$1" in
63 "-check") 67 "-check")
64 shift 68 shift