chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

uname -o does not exist on mac


From: Lassi Kortela
Subject: uname -o does not exist on mac
Date: Sun, 18 Jul 2021 12:01:54 +0300
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]