OSDN Git Service

Pass $(MATH_LIBS) $(NET_LIBS) when linking tests.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Sep 2011 22:33:31 +0000 (22:33 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Sep 2011 22:33:31 +0000 (22:33 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179219 138bc75d-0d04-0410-961f-82ee72b054a4

libgo/Makefile.am
libgo/Makefile.in
libgo/testsuite/gotest

index b49a61e..6992ce1 100644 (file)
@@ -1761,6 +1761,8 @@ GOTESTFLAGS =
 CHECK = \
        GC="$(GOC) $(GOCFLAGS) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
        export GC; \
+       GOLIBS="$(MATH_LIBS) $(NET_LIBS)"; \
+       export GOLIBS; \
        RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
        export RUNTESTFLAGS; \
        MAKE="$(MAKE)"; \
index 9d61859..cdabd02 100644 (file)
@@ -2077,6 +2077,8 @@ GOTESTFLAGS =
 CHECK = \
        GC="$(GOC) $(GOCFLAGS) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
        export GC; \
+       GOLIBS="$(MATH_LIBS) $(NET_LIBS)"; \
+       export GOLIBS; \
        RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
        export RUNTESTFLAGS; \
        MAKE="$(MAKE)"; \
index 296e8a5..69cf8ee 100755 (executable)
@@ -16,7 +16,7 @@ export LC_CTYPE=C
 
 GC=${GC:-gccgo}
 GL=${GL:-${GC-gccgo}}
-GOLIBS=
+GOLIBS=${GOLIBS:-}
 export GC GL GOLIBS
 
 NM=${NM:-nm}