summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-10-18 23:03:14 +0000
committerEric Andersen <andersen@codepoet.org>2002-10-18 23:03:14 +0000
commit8eecdc92578d5bc0119b12ba77a7b40808e6e567 (patch)
treeb189e50dd166f5f624e317d6a98b671e6f27f60f /Rules.mak
parent2e70e3a982dba018063109f9c88bb58dacb6ce5f (diff)
This patch, based on a patch from Stefan Allius, lets us pick an
appropriate awk implementation at compile time, so we can again compile on Solaris and whatnot. -Erik
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak3
1 files changed, 3 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index 41d41c924..e8745a14a 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -37,6 +37,9 @@ UCLIBC_LDSO:=ld-uClibc.so.$(MAJOR_VERSION)
LIBC:=$(TOPDIR)libc/libc.a
LIBGCC:=$(shell $(CC) $(LIBGCC_CFLAGS) -print-libgcc-file-name)
+# check if we have nawk, otherwise user awk
+AWK:= ${shell if [ -x /usr/bin/nawk ]; then echo "/usr/bin/nawk"; else echo "/usr/bin/awk"; fi}
+
NATIVE_ARCH:= ${shell uname -m | sed \
-e 's/i.86/i386/' \
-e 's/sparc.*/sparc/' \