jdk/make/common/shared/Defs.gmk
changeset 8201 9e6915af34ba
parent 7665 bc5dbdc44e1e
child 8586 2ca53fa2d6e9
--- a/jdk/make/common/shared/Defs.gmk	Wed Jul 05 17:33:49 2017 +0200
+++ b/jdk/make/common/shared/Defs.gmk	Thu Feb 10 20:45:13 2011 -0800
@@ -54,11 +54,12 @@
 # Assumes ARCH, PLATFORM, ARCH_VM_SUBDIR, JDK_TOPDIR, etc. have been defined.
 
 # Simple pwd path
+# NOTE: Just use the shell's cd and pwd here, more reliable at sanity time.
 define PwdPath
-$(shell $(CD) $1 2> $(DEV_NULL) && $(PWD))
+$(shell cd $1 2> $(DEV_NULL) && pwd)
 endef
 define AbsPwdPathCheck
-$(shell $(CD) .. 2> $(DEV_NULL) && $(CD) $1 2> $(DEV_NULL) && $(PWD))
+$(shell cd .. 2> $(DEV_NULL) && cd $1 2> $(DEV_NULL) && pwd)
 endef
 
 # Checks an ALT value for spaces (should be one word),