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.
		
		
		
		
		
			| 
				
					
						
							 | 
			11 years ago | |
|---|---|---|
| .. | ||
| include/libnative | 11 years ago | |
| src | 11 years ago | |
| AUTHORS | 11 years ago | |
| COPYING | 11 years ago | |
| ChangeLog | 11 years ago | |
| INSTALL | 11 years ago | |
| Makefile.am | 11 years ago | |
| Makefile.in | 11 years ago | |
| NEWS | 11 years ago | |
| README | 11 years ago | |
| README.md | 11 years ago | |
| aclocal.m4 | 11 years ago | |
| config.guess | 11 years ago | |
| config.sub | 11 years ago | |
| configure | 11 years ago | |
| configure.ac | 11 years ago | |
| depcomp | 11 years ago | |
| install-sh | 11 years ago | |
| ltmain.sh | 11 years ago | |
| missing | 11 years ago | |
| native.go | 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