re PR bootstrap/46812 (Linux libgo compilation fails when a "libnet" is already installed)

PR bootstrap/46812
Add explicit -I . when building libgo.

From-SVN: r167668
This commit is contained in:
Ian Lance Taylor 2010-12-09 22:17:25 +00:00
parent 8d47c1319a
commit d3de3f21fd
2 changed files with 2 additions and 2 deletions

View File

@ -1291,7 +1291,7 @@ BUILDARCHIVE = \
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

View File

@ -1586,7 +1586,7 @@ BUILDARCHIVE = \
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