diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2009-12-13 22:58:49 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2009-12-13 22:58:49 +0100 |
commit | f7a501e13ccf76814743ea7a5b46606762505c34 (patch) | |
tree | 22843af7c2122c7f2991021a421bff0d88f1f261 /package/mtd | |
parent | 617aa4995a2ea97e9663cac26744d67ea726745a (diff) |
Makefile: fix build if CDPATH is set in environment
Reported by Bjørn Forsman <bjorn.forsman@gmail.com>.
If CDPATH is set in the environment, cd <dir> will print the absolute path
of <dir>, causing various trouble (The most critical being BASE_DIR ending
up as <path> <path> which breaks basically everything).
Fix it by clearing CDPATH. Notice that export doesn't affect the environment
of $(shell ..) calls, so explicitly throw away any output from cd in the
BASE_DIR shell call.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/mtd')
0 files changed, 0 insertions, 0 deletions