Commit 56659da1 authored by Kenton Varda's avatar Kenton Varda

Samples need to be compiled with -pthread now.

parent d75e6a31
......@@ -6,7 +6,7 @@
set -exuo pipefail
capnpc -oc++ addressbook.capnp
c++ -std=c++11 -Wall addressbook.c++ addressbook.capnp.c++ -lcapnp -o addressbook
c++ -std=c++11 -Wall addressbook.c++ addressbook.capnp.c++ -lcapnp -pthread -o addressbook
./addressbook write | ./addressbook read
./addressbook dwrite | ./addressbook dread
rm addressbook addressbook.capnp.c++ addressbook.capnp.h
......
......@@ -158,7 +158,7 @@ doit make install
cd samples
doit capnpc -oc++ addressbook.capnp -I"$STAGING"/include
doit ${CXX:-g++} -std=c++11 $SAMPLE_CXXFLAGS -I"$STAGING"/include -L"$STAGING"/lib \
addressbook.c++ addressbook.capnp.c++ -lcapnp -o addressbook
addressbook.c++ addressbook.capnp.c++ -lcapnp -pthread -o addressbook
echo "@@@@ ./addressbook (in various configurations)"
./addressbook write | ./addressbook read
./addressbook dwrite | ./addressbook dread
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment