Commit d3de3f21 by Ian Lance Taylor

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
parent 8d47c131
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment