mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-25 12:27:43 +08:00
stop using deprecated Go flag -i
This commit is contained in:
parent
bf4cf14bd9
commit
a9dfe38c4b
@ -140,7 +140,7 @@ To build out-of-tree plugins, use the plugin's Makefile if provided. Otherwise,
|
||||
you can manually build the plugin by running:
|
||||
|
||||
```bash
|
||||
myplugin$ go build -buildmode=plugin -i -o myplugin.so myplugin.go
|
||||
myplugin$ go build -buildmode=plugin -o myplugin.so myplugin.go
|
||||
```
|
||||
|
||||
Finally, as with in-tree plugins:
|
||||
|
||||
@ -12,7 +12,7 @@ $($(d)_plugins_main):
|
||||
|
||||
$($(d)_plugins_so): %.so : %/main/main.go
|
||||
$($(d)_plugins_so): $$(DEPS_GO) ALWAYS
|
||||
$(GOCC) build -buildmode=plugin -i -pkgdir "$(GOPATH)/pkg/linux_amd64_dynlink" $(go-flags-with-tags) -o "$@" "$(call go-pkg-name,$(basename $@))/main"
|
||||
$(GOCC) build -buildmode=plugin -pkgdir "$(GOPATH)/pkg/linux_amd64_dynlink" $(go-flags-with-tags) -o "$@" "$(call go-pkg-name,$(basename $@))/main"
|
||||
chmod +x "$@"
|
||||
|
||||
CLEAN += $($(d)_plugins_so)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user