diff --git a/tools/gdb/Makefile b/tools/gdb/Makefile
index dee91fccc0a36217611baae53ecaa0646102b4f0..dd98fb65c0dccef2701d1bb877f055d0cda58c83 100644
--- a/tools/gdb/Makefile
+++ b/tools/gdb/Makefile
@@ -23,8 +23,6 @@ BINS	:= $(addprefix $(obj),$(BINS))
 #
 HOSTCPPFLAGS = -I$(BFD_ROOT_DIR)/include
 
-HOSTOS := $(shell uname -s | sed -e 's/\([Cc][Yy][Gg][Ww][Ii][Nn]\).*/cygwin/')
-
 ifeq ($(HOSTOS),cygwin)
 
 all: