12 lines
528 B
Diff
12 lines
528 B
Diff
--- dietlibc/Makefile.orig 2017-04-23 22:16:30.582445506 +0200
|
|
+++ dietlibc/Makefile 2017-04-23 22:18:12.275194690 +0200
|
|
@@ -10,7 +10,7 @@
|
|
|
|
EXTRACFLAGS=
|
|
|
|
-MYARCH:=$(shell uname -m | sed -e 's/i[4-9]86/i386/' -e 's/armv[3-7]t\?e\?[lb]/arm/')
|
|
+MYARCH:=$(shell gcc -v 2>&1 |grep 'Target:' | sed -e 's/.*Target: //' -e 's/-.*//' -e 's/i[4-9]86/i386/' -e 's/armv[3-7]t\?e\?[lb]/arm/' )
|
|
|
|
# This extra-ugly cruft is here so make will not run uname and sed each
|
|
# time it looks at $(OBJDIR). This alone sped up running make when
|