]> Cypherpunks repositories - gostls13.git/commitdiff
misc/cgo/testcshared: add explicit ./ to shared library argument
authorIan Lance Taylor <iant@golang.org>
Sat, 19 Nov 2016 02:14:11 +0000 (18:14 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 19 Nov 2016 04:31:36 +0000 (04:31 +0000)
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>
misc/cgo/testcshared/test.bash

index e4bb7d33f9dc54d0543adee998c49ddd11a92d25..052ee0e758987a9f55c9a8e2c0f86b0a280c19ac 100755 (executable)
@@ -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)