try adding //go:plugin to golang
This commit is contained in:
parent
c02399708e
commit
bb3802857b
14
Makefile
14
Makefile
|
@ -1,11 +1,19 @@
|
||||||
|
VERSION = $(shell git describe --tags)
|
||||||
|
|
||||||
all: plugin
|
all: plugin
|
||||||
ldd ../gocui.so
|
ldd ../gocui.so
|
||||||
|
|
||||||
plugin:
|
plugin:
|
||||||
GO111MODULE=off go build -v -buildmode=plugin -o ../gocui.so
|
GO111MODULE=off go build -v -work -buildmode=plugin -o ../gocui.so
|
||||||
|
|
||||||
pluginreal:
|
# for testing custom golang
|
||||||
go build -v -buildmode=plugin -o ~/go/lib/toolkits/gocui.so
|
custom:
|
||||||
|
# GO111MODULE=off go build -v
|
||||||
|
GO111MODULE=off go build -v -work -buildmode=blah
|
||||||
|
|
||||||
|
official:
|
||||||
|
mkdir -p ~/go/lib/go.wit.com/toolkits/gocui/
|
||||||
|
go build -v -x -buildmode=plugin -o ~/go/lib/go.wit.com/toolkits/gocui/gocui-${VERSION}.so
|
||||||
|
|
||||||
# Test the README.md & doc.go file
|
# Test the README.md & doc.go file
|
||||||
# this runs pkgsite, the binary that does dev.go.dev
|
# this runs pkgsite, the binary that does dev.go.dev
|
||||||
|
|
3
main.go
3
main.go
|
@ -1,7 +1,10 @@
|
||||||
|
//gjcarro:pjcarrlugin
|
||||||
|
|
||||||
// Copyright 2014 The gocui Authors. All rights reserved.
|
// Copyright 2014 The gocui Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
Loading…
Reference in New Issue