|
From: | John Cowan |
Subject: | Re: uname -o does not exist on mac |
Date: | Sun, 18 Jul 2021 10:10:33 -0400 |
Here's a small patch to silence a warning in `make` output on systems
where the `uname` command does not have the `-o` flag.
diff --git a/Makefile.detect b/Makefile.detect
index 10d36545..9694b125 100644
--- a/Makefile.detect
+++ b/Makefile.detect
@@ -19,7 +19,7 @@ else
# Now we can use uname tests
uname_s:=$(shell uname)
-uname_o:=$(shell uname -o)
+uname_o:=$(shell uname -o 2>/dev/null)
# Check for specific platforms
ifeq ($(uname_o),Msys)
[Prev in Thread] | Current Thread | [Next in Thread] |