| 1 | Use 'uname -m', which in practice returns the processor architecture. |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | endif |
| 7 | |
| 8 | export os ?= $(shell uname -s | tr '[A-Z]' '[a-z]') |
| 9 | -export arch := $(shell uname -p | sed -e 's,\(i[456]86\|athlon$$\),i386,') |
| 10 | +export arch := $(shell uname -m | sed -e 's,\(i[456]86\|athlon$$\),i386,') |
| 11 | |
| 12 | CC ?= gcc |
| 13 |