All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keith Owens <kaos@ocs.com.au>
To: linux-kernel@vger.kernel.org
Subject: 2.4 mkdep and symlinked kernel source
Date: Mon, 05 Mar 2001 13:33:55 +1100	[thread overview]
Message-ID: <2015.983759635@kao2.melbourne.sgi.com> (raw)

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


                 reply	other threads:[~2001-03-05  2:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2015.983759635@kao2.melbourne.sgi.com \
    --to=kaos@ocs.com.au \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.