* Makefile.common: Avoid double slashes in GCC_INCLUDE.

This commit is contained in:
Christopher Faylor 2003-03-09 19:22:15 +00:00
parent ef1aafb0f3
commit cb837d41a7
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-03-09 Christopher Faylor <cgf@redhat.com>
* Makefile.common: Avoid double slashes in GCC_INCLUDE.
2003-02-12 Christopher Faylor <cgf@redhat.com>
* MAINTAINERS: Remove out-of-date file.

View File

@ -115,7 +115,7 @@ endif
libgcc:=${subst \,/,${shell $(CC_FOR_TARGET) -print-libgcc-file-name}}
gcc_libdir:=${word 1,${dir $(libgcc)}}
ifeq (,${findstring $(gcc_libdir),$(CFLAGS) $(CXXFLAGS) $(CXX) $(CC)})
GCC_INCLUDE:=-I$(gcc_libdir)/include
GCC_INCLUDE:=${subst //,/,-I$(gcc_libdir)/include}
endif
COMPILE_CXX=$(CXX) $c -nostdinc++ -nostdinc $(ALL_CXXFLAGS) $(GCC_INCLUDE) \