diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-10-18 23:03:14 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-10-18 23:03:14 +0000 |
commit | 8eecdc92578d5bc0119b12ba77a7b40808e6e567 (patch) | |
tree | b189e50dd166f5f624e317d6a98b671e6f27f60f /Rules.mak | |
parent | 2e70e3a982dba018063109f9c88bb58dacb6ce5f (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.mak | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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/' \ |