Patchwork libgo patch committed: Add explicit -I when building libgo

login
register
mail settings
Submitter Ian Taylor
Date Dec. 9, 2010, 10:18 p.m.
Message ID <mcrzksebnew.fsf@google.com>
Download mbox | patch
Permalink /patch/75001/
State New
Headers show

Comments

Ian Taylor - Dec. 9, 2010, 10:18 p.m.
In another attempt to fix PR 46812, this patch adds an explicit -I
option when building libgo, so that while building gccgo should include
the local packages first.  Committed to mainline.

Ian

Patch

diff -r d2f4dee3cf22 libgo/Makefile.am
--- a/libgo/Makefile.am	Tue Dec 07 18:07:38 2010 -0800
+++ b/libgo/Makefile.am	Thu Dec 09 14:15:03 2010 -0800
@@ -1291,7 +1291,7 @@ 
 	test -d $(@D) || $(MKDIR_P) $(@D); \
 	rm -f $@; \
 	files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
-	if $(LTGOCOMPILE) -c -fgo-prefix="libgo_$(@D)" -o $@.$(OBJEXT) $$files; then \
+	if $(LTGOCOMPILE) -I . -c -fgo-prefix="libgo_$(@D)" -o $@.$(OBJEXT) $$files; then \
 	  $(AR) rc $@ $@.$(OBJEXT); \
 	else exit 1; fi