From 5693c8d55b17578934c59013ea440f8a2056d915 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 21 Oct 2000 22:01:55 +0000 Subject: * Makefile.common (LIBGCC): Find libstdc++.a as well as libc.a since builtin functions are in this library in newer gcc's. --- winsup/Makefile.common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/Makefile.common') 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 -- cgit v1.2.3