summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2007-05-10 15:02:09 +0000
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2007-05-10 15:02:09 +0000
commit1102c208591f40667a0062db40d0db3c620a37f7 (patch)
tree22f2610944515e079e18ddff835d83d63de6cc4c
parent508c6f650260a6df03d9aef12c2fa656a16266d4 (diff)
Use posix conform directory existance check (Roy Marples <uberlord@gentoo.org>)
Makefile uses [ -a /dir ] which is invalid on non bash shells Bugzilla #569
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3d7d7b3..8a9dd8c 100644
--- a/Makefile
+++ b/Makefile
@@ -79,7 +79,7 @@ endif
# Generic test if arch wasn't found above
ifneq ($(POINTERTEST),1)
# Try to determine if kernel is 64bit and we are compiling for 32bit
- ifeq ($(shell [ -a $(KERNEL_DIR)/include/asm ] && echo YES), YES)
+ ifeq ($(shell [ -d $(KERNEL_DIR)/include/asm ] && echo YES), YES)
64bitkernel := $(shell echo -e "\#include <asm/types.h>\n\#if BITS_PER_LONG == 64\nkernel_is_64bits\n\#endif" | $(CC) $(CFLAGS) -D__KERNEL__ -E - | grep kernel_is_64bits)
ifdef 64bitkernel
32bituser := $(shell echo -e "\#include <stdio.h>\n\#if !defined(__arch64__) && !defined(_LP64)\nuserspace_is_32bit\n\#endif" | $(CC) $(CFLAGS) -E - | grep userspace_is_32bit)