dot-files/examples/native
Buddy Sandidge 4a47c0e8f4 Squashed 'gvm/' content from commit 23017d2c9
git-subtree-dir: gvm
git-subtree-split: 23017d2c98964d5178082340c69d63fd01512f5f
2014-08-05 21:18:26 -07:00
..
include/libnative Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
src Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
aclocal.m4 Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
AUTHORS Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
ChangeLog Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
config.guess Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
config.sub Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
configure Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
configure.ac Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
COPYING Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
depcomp Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
INSTALL Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
install-sh Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
ltmain.sh Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
Makefile.am Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
Makefile.in Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
missing Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
native.go Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
NEWS Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
README Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00
README.md Squashed 'gvm/' content from commit 23017d2c9 2014-08-05 21:18:26 -07:00

This example demonstrates a workflow with native code integration.

Preparation

gvm install go1.1
gvm use go1.1
gvm pkgset create libnative
gvm pkgset use libnative

Native Code Installation

gvm pkgset use libnative
./configure --prefix=${GVM_OVERLAY_PREFIX}
make && make install

Go Integration Testing

CGO_CFLAGS="-I${GVM_OVERLAY_PREFIX}/include" CGO_LDFLAGS="${GVM_OVERLAY_PREFIX}/lib/libnative.a" go build -v -x .go build
./native