[PATCH 2/2] Clean up: libtommath/makefile.include: `arch' -> `uname -m'
Michael Witten
mfwitten at gmail.com
Wed Jul 12 13:05:07 AWST 2017
Whenever building `libtommath', `make' would complain to me that
it could not find the `arch' command.
According to `info arch':
`arch' prints the machine hardware name, and is equivalent to
`uname -m'... `arch' is not installed by default, so portable
scripts should not rely on its existence.
Well, this commit accepts that advice, replacing the invocation
of `arch' with the invocation of `uname -m'.
Now, it's true that this is a fix for what is essentially
another project, and this fix might one day make it "upstream",
but there's no reason that users of Dropbear must suffer until
then.
---
libtommath/makefile.include | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libtommath/makefile.include b/libtommath/makefile.include
index c862f0f..4e4a9bf 100644
--- a/libtommath/makefile.include
+++ b/libtommath/makefile.include
@@ -55,7 +55,7 @@ endif # COMPILE_SIZE
endif # COMPILE_DEBUG
# adjust coverage set
-ifneq ($(filter $(shell arch), i386 i686 x86_64 amd64 ia64),)
+ifneq ($(filter $(shell uname -m), i386 i686 x86_64 amd64 ia64),)
COVERAGE = test_standalone timing
COVERAGE_APP = ./test && ./ltmtest
else
--
2.10.0
More information about the Dropbear
mailing list