From 1945465a5e96d3c64d61a283358abd191669cbf6 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 20 Mar 2012 08:54:44 -0700 Subject: [PATCH] Revised makefile to build with gcc 3.x as well as different 4.x versions and to dynamically determine the availability of desired features and to report the GCC version at build time. --- makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/makefile b/makefile index 1da49155..aaea003f 100644 --- a/makefile +++ b/makefile @@ -248,6 +248,7 @@ else #Win32 Environments (via MinGW32) GCC = gcc GCC_Path := $(dir $(shell where gcc.exe)) + GCC_VERSION = $(word 3,$(shell $(GCC) --version)) ifeq (pthreads,$(shell if exist ..\windows-build\pthreads\Pre-built.2\include\pthread.h echo pthreads)) PTHREADS_CCDEFS = -DUSE_READER_THREAD -DPTW32_STATIC_LIB -I../windows-build/pthreads/Pre-built.2/include ifeq (,$(NOASYNCH)) @@ -326,6 +327,7 @@ ifneq (3,$(GCC_MAJOR_VERSION)) CFLAGS_O += -Wno-unused-result endif endif +BUILD_FEATURES := $(BUILD_FEATURES). GCC Version: $(GCC_VERSION) $(info ***) $(info *** $(BUILD_SINGLE)Simulator$(BUILD_MULTIPLE) being built with:) $(info *** $(BUILD_FEATURES).)