diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/nvramtool/Makefile | 2 | ||||
-rw-r--r-- | util/nvramtool/Makefile.inc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/util/nvramtool/Makefile b/util/nvramtool/Makefile index 6723a487bfe6..fe2efa016485 100644 --- a/util/nvramtool/Makefile +++ b/util/nvramtool/Makefile @@ -42,7 +42,7 @@ endif ifeq ($(OS_ARCH), NetBSD) LDFLAGS = -l$(shell uname -p) endif -ifeq ($(shell uname -o), Cygwin) +ifeq ($(shell uname -o 2>/dev/null), Cygwin) LDFLAGS = -lioperm CFLAGS += -D__GLIBC__ endif diff --git a/util/nvramtool/Makefile.inc b/util/nvramtool/Makefile.inc index 67710da52a3a..8471b66cbcc1 100644 --- a/util/nvramtool/Makefile.inc +++ b/util/nvramtool/Makefile.inc @@ -24,7 +24,7 @@ NVRAMTOOLFLAGS := -I$(top)/util/nvramtool ifeq ($(OS_ARCH), NetBSD) NVRAMTOOLLDLFLAGS = -l$(shell uname -p) endif -ifeq ($(shell uname -o), Cygwin) +ifeq ($(shell uname -o 2>/dev/null), Cygwin) NVRAMTOOLFLAGS += -O2 -g -Wall -W -D__GLIBC__ HOSTCFLAGS = endif |