From 5c284e0c43af4f4a0bf1751c28749501ae7e71e3 Mon Sep 17 00:00:00 2001 From: cgf Date: Wed, 6 Aug 2003 02:06:43 +0000 Subject: [PATCH] * Makefile.common: Don't send -nostdinc++ with g++. --- winsup/ChangeLog | 4 ++++ winsup/Makefile.common | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/winsup/ChangeLog b/winsup/ChangeLog index 72ef6859f4..ff2f4ff544 100644 --- a/winsup/ChangeLog +++ b/winsup/ChangeLog @@ -1,3 +1,7 @@ +2003-08-05 Christopher Faylor + + * Makefile.common: Don't send -nostdinc++ with g++. + 2003-07-25 Christopher Faylor * Makefile.in: Only use localhost when building mingw with distcc or diff --git a/winsup/Makefile.common b/winsup/Makefile.common index 8e5bbda9d8..4400b37270 100644 --- a/winsup/Makefile.common +++ b/winsup/Makefile.common @@ -76,8 +76,9 @@ endif # Attempt to properly detect missing mingw or w32api and adjust command # line parameters appropriately -nostdinc:=${shell [ -d "$(updir)/w32api" ] && echo "-nostdinc -nostdinc++"} +nostdinc:=${shell [ -d "$(updir)/w32api" ] && echo "-nostdinc"} ifneq (,$(nostdinc)) +nostdincxx:=-nostdinc++ ifeq (,${findstring $(w32api_source),$(CFLAGS) $(CXXFLAGS) $(CXX) $(CC)}) w32api_include:=-I$(w32api_source)/include endif @@ -129,7 +130,7 @@ ifeq (,${findstring $(gcc_libdir),$(CFLAGS) $(CXXFLAGS) $(CXX) $(CC)}) GCC_INCLUDE:=${subst //,/,-I$(gcc_libdir)/include} endif -COMPILE_CXX=$(CXX) $c $(nostdinc) $(ALL_CXXFLAGS) $(GCC_INCLUDE) \ +COMPILE_CXX=$(CXX) $c $(nostdincxx) $(ALL_CXXFLAGS) $(GCC_INCLUDE) \ -fno-rtti -fno-exceptions COMPILE_CC=$(CC) $c $(nostdinc) $(ALL_CFLAGS) $(GCC_INCLUDE) -- 2.11.0