]> Cypherpunks repositories - gostls13.git/commit
cmd/go: special case shared library name when passed "$prefix/..."
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Wed, 23 Dec 2015 02:33:55 +0000 (15:33 +1300)
committerMichael Hudson-Doyle <michael.hudson@canonical.com>
Wed, 6 Jan 2016 01:46:39 +0000 (01:46 +0000)
commitae8e55860b1c7cecd00ce70ed87539b56e360dae
treec0d42d6b3748b5d91decf307c291dbd5310087d4
parent7f96e266ec684943acfc1164a18d2cf005e03ef6
cmd/go: special case shared library name when passed "$prefix/..."

Before golang.org/cl/13921, "go install -buildmode=shared prefix/..." created a
file called "libprefix.so", which was obviously a problem when prefix was
something like "." or "../".  However, now it expands the ... into all the
matched packages, joins them with -, which can clearly be a very long name
indeed. Because I plan to build shared libraries for Ubuntu by running commands
exactly like "go install -buildmode=shared prefix/...", this special cases this
to produce the old behaviour (but de-relativises prefix first).

Fixes #13714

Change-Id: I4fd8d4934279f9a18cc70a13e4ef3e23f6abcb6e
Reviewed-on: https://go-review.googlesource.com/18114
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/build.go
src/cmd/go/pkg_test.go