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, 2 insertions, 2 deletions
diff --git a/winsup/Makefile.common b/winsup/Makefile.common
index 38a5779d7..86ac71fd9 100644
--- a/winsup/Makefile.common
+++ b/winsup/Makefile.common
@@ -85,8 +85,8 @@ c=-E
o=.E
endif
-LIBGCC:=${subst \,/,${shell $(CC_FOR_TARGET) -print-libgcc-file-name}}
-GCC_INCLUDE:=${dir $(LIBGCC)}/include
+LIBGCC:=${subst \,/,${shell $(CC_FOR_TARGET) -print-libgcc-file-name; exec $(CC_FOR_TARGET) -print-file-name=libstdc++.a}}
+GCC_INCLUDE:=${dir ${word 1,$(LIBGCC)}}/include
COMPILE_CXX:=$(CC) $c -nostdinc++ $(ALL_CXXFLAGS) -I$(GCC_INCLUDE) \
-fno-rtti -fno-exceptions