[PATCH] Makefile: disable CDPATH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



CDPATH has sideeffects when generating barebox_default_env.h (printing
the directory name into the header file), causing a build failure.
Disable it for the build.

Signed-off-by: Wolfram Sang <w.sang@xxxxxxxxxxxxxx>
---
 Makefile |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile b/Makefile
index 881680d..55262ad 100644
--- a/Makefile
+++ b/Makefile
@@ -136,6 +136,9 @@ ifeq ($(skip-makefile),)
 PHONY += all
 _all: all
 
+# CDPATH can have sideeffects; disable, since we do know where we want to cd to
+export CDPATH=
+
 srctree		:= $(if $(KBUILD_SRC),$(KBUILD_SRC),$(CURDIR))
 objtree		:= $(CURDIR)
 src		:= $(srctree)
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux