This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libgo patch committed: Add explicit -I when building libgo
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org, gofrontend-dev at googlegroups dot com
- Date: Thu, 09 Dec 2010 14:18:31 -0800
- Subject: libgo patch committed: Add explicit -I when building libgo
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
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