Skip to content

Commit cdaec61

Browse files
author
Keith Smith
committed
Fix building COP in vagrant
See https://jira.hyperledger.org/browse/FAB-1597 for this issue. The problem is that we could not build COP in vagrant. The reason was that one of COP's vendored packages has native code with an 'import "C"' statement in it which uses cgo, which uses the CGO_LDFLAGS env variable to link, which had "-lrocksdb" on it. This change set removes CGO_LDFLAGS from devenv/setup.sh While this change set fixes the COP build issue, there are other references to rocksdb in fabric examples which need cleaning up. See https://jira.hyperledger.org/browse/FAB-1636 Change-Id: I54e877b2c1f872811a18e983b1e1c05eb5ab1700 Signed-off-by: Keith Smith <[email protected]>
1 parent 4a156cc commit cdaec61

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

devenv/setup.sh

-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ cat <<EOF >/etc/profile.d/vagrant-devenv.sh
101101
export PATH=\$PATH:/hyperledger/devenv/tools:/hyperledger/build/bin
102102
export VAGRANT=1
103103
export CGO_CFLAGS=" "
104-
export CGO_LDFLAGS="-lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy"
105104
EOF
106105

107106
# Set our shell prompt to something less ugly than the default from packer

0 commit comments

Comments
 (0)