aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-03-09 19:22:15 +0000
committerChristopher Faylor <me@cgf.cx>2003-03-09 19:22:15 +0000
commitcb837d41a73aaea09a22e8e07d53f4037808c8f2 (patch)
tree4661decd4436506542cfe46a851ac0673a34611b
parentef1aafb0f342edde336cc542c128e5ddc3d569da (diff)
downloadnewlib-cb837d41a73aaea09a22e8e07d53f4037808c8f2.zip
newlib-cb837d41a73aaea09a22e8e07d53f4037808c8f2.tar.gz
newlib-cb837d41a73aaea09a22e8e07d53f4037808c8f2.tar.bz2
* Makefile.common: Avoid double slashes in GCC_INCLUDE.
-rw-r--r--winsup/ChangeLog4
-rw-r--r--winsup/Makefile.common2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/ChangeLog b/winsup/ChangeLog
index 2896e29..3aab10c 100644
--- a/winsup/ChangeLog
+++ b/winsup/ChangeLog
@@ -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.
diff --git a/winsup/Makefile.common b/winsup/Makefile.common
index 18910ae..c98239f 100644
--- a/winsup/Makefile.common
+++ b/winsup/Makefile.common
@@ -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) \