Files
Matt T. Proud a1b2d926d6 Provide support for vendored native code workflow.
This commit introduces generated overlay filesystem support for
${PATH}, ${LD_LIBRARY_PATH}, and ${PKG_CONFIG_PATH} as well as
includes a working example of how to take advantage of this support
when integrating with vendored code.
2013-05-24 11:36:44 +02:00

18 lines
412 B
Plaintext

# 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