Add net tag to Makefile 16/77616/1
authorVictor Morales <victor.morales@intel.com>
Wed, 30 Jan 2019 17:31:15 +0000 (09:31 -0800)
committerVictor Morales <victor.morales@intel.com>
Wed, 30 Jan 2019 17:31:15 +0000 (09:31 -0800)
The change that removes duplicate plugins make actions
I0efecdcb70052b4c0d66102c56e0c715481cb34a didn't consider
the flag for net module which it's needed during the runtime.

Change-Id: I534c38d017fcc08294e8ca52cc936dea117914e3
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

src/k8splugin/Makefile

index 635c915..afb83d6 100644 (file)
@@ -43,7 +43,7 @@ format:
        @go fmt ./...
 
 plugins:
-       @find plugins -maxdepth 1 -type d -not -path plugins -exec sh -c "ls {}/plugin.go | xargs go build -buildmode=plugin -o $(basename {}).so" \;
+       @find plugins -maxdepth 1 -type d -not -path plugins -exec sh -c "ls {}/plugin.go | xargs go build -buildmode=plugin -a -tags netgo -o $(basename {}).so" \;
 
 clean:
        @find . -name "*so" -delete