chicken-hackers
[Top][All Lists]
Advanced

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

Re: uname -o does not exist on mac


From: John Cowan
Subject: Re: uname -o does not exist on mac
Date: Sun, 18 Jul 2021 10:10:33 -0400

Thanks!  You should see if Chibi has the same problem, since it uses a very similar Makefile.detect.

On Sun, Jul 18, 2021 at 5:02 AM Lassi Kortela <lassi@lassi.io> wrote:
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]