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:
authorChristopher Faylor <me@cgf.cx>2000-10-22 02:01:55 +0400
committerChristopher Faylor <me@cgf.cx>2000-10-22 02:01:55 +0400
commit5693c8d55b17578934c59013ea440f8a2056d915 (patch)
treec37e0c7e6c636fa50aa14bbbca47a717ff5877fa
parent5a84a8dc2ec8fdf7540d647788a7344492f500d8 (diff)
* Makefile.common (LIBGCC): Find libstdc++.a as well as libc.a since builtin
functions are in this library in newer gcc's.
-rw-r--r--winsup/ChangeLog5
-rw-r--r--winsup/Makefile.common4
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/ChangeLog b/winsup/ChangeLog
index 88622fe83..74617df4a 100644
--- a/winsup/ChangeLog
+++ b/winsup/ChangeLog
@@ -1,3 +1,8 @@
+Sat Oct 21 18:01:22 2000 Christopher Faylor <cgf@cygnus.com>
+
+ * Makefile.common (LIBGCC): Find libstdc++.a as well as libc.a since
+ builtin functions are in this library in newer gcc's.
+
Sun Oct 1 22:02:38 2000 Christopher Faylor <cgf@cygnus.com>
* Makefile.common: Extend VERBOSE default.
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