diff options
| author | Ian Lance Taylor <iant@golang.org> | 2016-11-18 18:14:11 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2016-11-19 04:31:36 +0000 |
| commit | 7dc97d9e328edc800e2ce41d5b211ef4e0ef41d0 (patch) | |
| tree | e679cec1ef682d063c349dda0e4e472b31b58005 /misc/cgo/testcshared | |
| parent | f42929ce9fcf8b32656900764881cfb84fdbe46b (diff) | |
| download | go-7dc97d9e328edc800e2ce41d5b211ef4e0ef41d0.tar.xz | |
misc/cgo/testcshared: add explicit ./ to shared library argument
Use an explicit ./ to make sure we link against the libgo.so we just
built, not some other libgo.so that the compiler or linker may decide to
seek out.
Fixes #17986.
Change-Id: Id23f6c95aa2b52f4f42c1b6dac45482c22b4290d
Reviewed-on: https://go-review.googlesource.com/33413
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'misc/cgo/testcshared')
| -rwxr-xr-x | misc/cgo/testcshared/test.bash | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
