You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Buddy Sandidge 4a47c0e8f4 Squashed 'gvm/' content from commit 23017d2c9
git-subtree-dir: gvm
git-subtree-split: 23017d2c98964d5178082340c69d63fd01512f5f
11 years ago
..
include/libnative Squashed 'gvm/' content from commit 23017d2c9 11 years ago
src Squashed 'gvm/' content from commit 23017d2c9 11 years ago
AUTHORS Squashed 'gvm/' content from commit 23017d2c9 11 years ago
COPYING Squashed 'gvm/' content from commit 23017d2c9 11 years ago
ChangeLog Squashed 'gvm/' content from commit 23017d2c9 11 years ago
INSTALL Squashed 'gvm/' content from commit 23017d2c9 11 years ago
Makefile.am Squashed 'gvm/' content from commit 23017d2c9 11 years ago
Makefile.in Squashed 'gvm/' content from commit 23017d2c9 11 years ago
NEWS Squashed 'gvm/' content from commit 23017d2c9 11 years ago
README Squashed 'gvm/' content from commit 23017d2c9 11 years ago
README.md Squashed 'gvm/' content from commit 23017d2c9 11 years ago
aclocal.m4 Squashed 'gvm/' content from commit 23017d2c9 11 years ago
config.guess Squashed 'gvm/' content from commit 23017d2c9 11 years ago
config.sub Squashed 'gvm/' content from commit 23017d2c9 11 years ago
configure Squashed 'gvm/' content from commit 23017d2c9 11 years ago
configure.ac Squashed 'gvm/' content from commit 23017d2c9 11 years ago
depcomp Squashed 'gvm/' content from commit 23017d2c9 11 years ago
install-sh Squashed 'gvm/' content from commit 23017d2c9 11 years ago
ltmain.sh Squashed 'gvm/' content from commit 23017d2c9 11 years ago
missing Squashed 'gvm/' content from commit 23017d2c9 11 years ago
native.go Squashed 'gvm/' content from commit 23017d2c9 11 years ago

README.md

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