--- ./libgo/testsuite/gotest_orig	2018-09-11 06:52:14 +0000
+++ ./libgo/testsuite/gotest	2018-09-11 06:53:50 +0000
@@ -92,6 +92,10 @@
 		;;
 	x--pkgpath=*)
 		pkgpath=`echo $1 | sed -e 's/^--pkgpath=//'`
+		if [ "$pkgpath" = "net/http" ]
+		then
+			NETHTTPFLAGS="-mcmodel=large"
+		fi
 #		echo "Test: $pkgpath"
 #		if [ "$pkgpath" != "net/http/httputil" ]
 #		then
@@ -621,9 +625,9 @@
 	${GC} -g -c _testmain.go
 
 	if test "$trace" = "true"; then
-	    echo ${GL} *.o ${GOLIBS}
+	    echo ${GL} *.o ${GOLIBS} ${NETHTTPFLAGS}
 	fi
-	${GL} *.o ${GOLIBS}
+	${GL} *.o ${GOLIBS} ${NETHTTPFLAGS}
 
 	set +e
 	cp a.out a.out.ORIGIN
