]> Cypherpunks repositories - gostls13.git/commit
cgo: use slash-free relative paths for .so references
authorRuss Cox <rsc@golang.org>
Thu, 1 Jul 2010 06:31:27 +0000 (23:31 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 1 Jul 2010 06:31:27 +0000 (23:31 -0700)
commit489494cac33868cc207fc2f6d43444e0a99e67cd
tree87689f5386c0f4ccf8375cfccd4423c02db84797
parent7c9ed7946c64bf3edda408dba95bdcc76c9169c8
cgo: use slash-free relative paths for .so references

The Makefile and cgo now rewrite / to _ when creating the path.
The .so for gosqlite.googlecode.com/hg/sqlite is named
cgo_gosqlite.googlecode.com_hg_sqlite.so, and then 6l and 8l
both include a default rpath of $GOROOT/pkg/$GOOS_$GOARCH.
This should make it easier to move binaries from one system
to another.

Fixes #857.

R=iant, r
CC=golang-dev
https://golang.org/cl/1700048
src/Make.pkg
src/cmd/5l/obj.c
src/cmd/6l/obj.c
src/cmd/8l/obj.c
src/cmd/cgo/out.go
src/cmd/ld/macho.c