make: fix buildmode=plugin and pkgdir problems

License: MIT
Signed-off-by: default avatarJakub Sztandera <kubuxu@protonmail.ch>
parent 2c71cf0f
...@@ -4,7 +4,7 @@ $(d)_plugins:=$(d)/git ...@@ -4,7 +4,7 @@ $(d)_plugins:=$(d)/git
$(d)_plugins_so:=$(addsuffix .so,$($(d)_plugins)) $(d)_plugins_so:=$(addsuffix .so,$($(d)_plugins))
$($(d)_plugins_so): $$(DEPS_GO) ALWAYS $($(d)_plugins_so): $$(DEPS_GO) ALWAYS
go build -buildmode=plugin -i $(go-flags-with-tags) -o "$@" "$(call go-pkg-name,$(basename $@))" go build -buildmode=plugin -i -pkgdir "$$GOPATH/pkg/linux_amd64_dynlink" $(go-flags-with-tags) -o "$@" "$(call go-pkg-name,$(basename $@))"
CLEAN += $($(d)_plugins_so) CLEAN += $($(d)_plugins_so)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment