libgo patch committed: Add explicit -I when building libgo

Submitted by Ian Taylor on Dec. 9, 2010, 10:18 p.m.

Details

Message ID mcrzksebnew.fsf@google.com
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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