Skip to content

Commit

Permalink
kbuild: fix a cscope bug (make cscope segfaults)
Browse files Browse the repository at this point in the history
Workaround a cscope bug where a trailing ':' in VPATH makes it segfault
and let it build the cross-reference succesfully.

VPATH=/home/mattia/devel/kernel/git/linux-2.6: cscope -b
[1]    17555 segmentation fault VPATH=/home/mattia/devel/kernel/git/linux-2.6: cscope -b

Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
Mattia Dongili authored and Sam Ravnborg committed Feb 19, 2006
1 parent 93684d3 commit 0f558c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ objtree := $(CURDIR)
src := $(srctree)
obj := $(objtree)

VPATH := $(srctree):$(KBUILD_EXTMOD)
VPATH := $(srctree)$(if $(KBUILD_EXTMOD),:$(KBUILD_EXTMOD))

export srctree objtree VPATH TOPDIR

Expand Down

0 comments on commit 0f558c3

Please sign in to comment.