Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/Makefile.common')
-rw-r--r--winsup/Makefile.common4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/Makefile.common b/winsup/Makefile.common
index d80d9748f..b5bf09a7b 100644
--- a/winsup/Makefile.common
+++ b/winsup/Makefile.common
@@ -88,7 +88,9 @@ ifdef CONFIG_DIR
INCLUDES+=-I$(CONFIG_DIR)
endif
-MINGW_INCLUDES:=-I$(updir)/mingw/include $(INCLUDES)
+MINGW_INCLUDES:=-I$(updir)/mingw/include $(w32api_include)
+MINGW_CFLAGS:=-mno-cygwin $(MINGW_INCLUDES)
+MINGW_CXXFLAGS:=${filter-out $(newlib_source)/%,$(CXXFLAGS)} -mno-cygwin $(MINGW_INCLUDES)
GCC_DEFAULT_OPTIONS:=$(CFLAGS_COMMON) $(CFLAGS_CONFIG) $(INCLUDES)