blob: 61b5e0608c20b15e655e84b619d4c322ebe75ca4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
GOBGP_PATH=${GOPATH}/src/github.com/osrg/gobgp
cd ${GOBGP_PATH}/cmd/gobgp/lib
go build -buildmode=c-shared -o libgobgp.so *.go
cd ${GOBGP_PATH}/tools/grpc/cpp
ln -sf ${GOBGP_PATH}/cmd/gobgp/lib/libgobgp.h
ln -sf ${GOBGP_PATH}/cmd/gobgp/lib/libgobgp.so
ln -sf ${GOBGP_PATH}/api/gobgp.proto gobgp_api_client.proto
make
|