From eab893a17c27a7ef2247eeb48c02cc4ceb5cc935 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Sat, 12 Mar 2005 02:04:08 +0000 Subject: [PATCH] Minor touch ups to the tools version check to get it working on Linux. svn path=/trunk/; revision=13949 --- reactos/tools/tools-check.c | 4 ++-- reactos/tools/tools-check.mak | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/reactos/tools/tools-check.c b/reactos/tools/tools-check.c index 8b6cf7d6a4f..b24b3cc9281 100644 --- a/reactos/tools/tools-check.c +++ b/reactos/tools/tools-check.c @@ -11,7 +11,7 @@ (BINUTILS_VERSION_DATE < 20031001) #error Due to technical reasons your binutils version can't be used to \ build ReactOS. Please consider upgrading to newer version. See \ - www.mingw.org for details.) + www.mingw.org for details. #endif /* @@ -23,7 +23,7 @@ (__GNUC__ < 3) #error Due to technical reasons your GCC version can't be used to \ build ReactOS. Please consider upgrading to newer version. See \ - www.mingw.org for details.) + www.mingw.org for details. #endif /* diff --git a/reactos/tools/tools-check.mak b/reactos/tools/tools-check.mak index 07e05434b72..89e3b3a1c86 100644 --- a/reactos/tools/tools-check.mak +++ b/reactos/tools/tools-check.mak @@ -12,7 +12,12 @@ include $(PATH_TO_TOP)/rules.mak BINUTILS_VERSION_DATE=$(word 5,$(shell $(PREFIX)ld -v)) all: +ifeq ($(HOST),mingw32-linux) + @echo "#define BINUTILS_VERSION_DATE $(BINUTILS_VERSION_DATE)" > tools-check.h +endif +ifeq ($(HOST),mingw32-windows) @echo #define BINUTILS_VERSION_DATE $(BINUTILS_VERSION_DATE) > tools-check.h +endif $(HOST_CC) -c tools-check.c -o tools-check.temp $(RM) tools-check.temp $(RM) tools-check.h