* 2.4 mkdep and symlinked kernel source
@ 2001-03-05 2:33 Keith Owens
0 siblings, 0 replies; only message in thread
From: Keith Owens @ 2001-03-05 2:33 UTC (permalink / raw)
To: linux-kernel
The recent changes to mkdep can create incorrect dependencies when
(a) the kernel source is a symlink and
(b) you cd to the symlink and
(c) your shell exports PWD.
This one line patch against 2.4.3-pre2 gives consistent results.
Please report any problems to kaos@ocs.com.au.
Index: 3-pre2.1/Makefile
--- 3-pre2.1/Makefile Mon, 05 Mar 2001 10:47:15 +1100 kaos (linux-2.4/T/c/50_Makefile 1.1.2.15.1.2.2.2 644)
+++ 3-pre2.1(w)/Makefile Mon, 05 Mar 2001 13:19:33 +1100 kaos (linux-2.4/T/c/50_Makefile 1.1.2.15.1.2.2.2 644)
@@ -10,7 +10,7 @@ ARCH := $(shell uname -m | sed -e s/i.86
CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
else if [ -x /bin/bash ]; then echo /bin/bash; \
else echo sh; fi ; fi)
-TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
+TOPDIR := $(shell /bin/pwd)
HPATH = $(TOPDIR)/include
FINDHPATH = $(HPATH)/asm $(HPATH)/linux $(HPATH)/scsi $(HPATH)/net
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-03-05 2:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-05 2:33 2.4 mkdep and symlinked kernel source Keith Owens
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.