This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]