diff --git a/misc/cgo/testcshared/test.bash b/misc/cgo/testcshared/test.bash index e4bb7d33f9..052ee0e758 100755 --- a/misc/cgo/testcshared/test.bash +++ b/misc/cgo/testcshared/test.bash @@ -105,7 +105,7 @@ status=0 # test0: exported symbols in shared lib are accessible. # TODO(iant): using _shared here shouldn't really be necessary. -$(go env CC) ${GOGCCFLAGS} -I ${installdir} -o testp main0.c libgo.$libext +$(go env CC) ${GOGCCFLAGS} -I ${installdir} -o testp main0.c ./libgo.$libext binpush testp output=$(run LD_LIBRARY_PATH=. ./testp)