Skip to content

Commit

Permalink
get-bpm-deps.sh: add libsodium to libzmq compilation
Browse files Browse the repository at this point in the history
This avoids the issue described in
zeromq/libzmq#2991
and
zeromq/czmq#1299
  • Loading branch information
lerwys committed Feb 27, 2020
1 parent 6a4f121 commit dab56ff
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions get-bpm-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,19 @@ fi

# Configure and Install
for project in libsodium libzmq czmq; do

CONFIG_OPTS=()
CONFIG_OPTS+=("CFLAGS=-Wno-format-truncation")
CONFIG_OPTS+=("CPPFLAGS=-Wno-format-truncation")
if [ $project == "libzmq" ]; then
CONFIG_OPTS+=("--with-libsodium")
fi

cd $project && \
./autogen.sh && \
./configure &&
./configure "${CONFIG_OPTS[@]}" && \
make check && \
make CFLAGS=-Wno-format-truncation && \
make && \
sudo make install && \
sudo ldconfig && \
cd ..
Expand Down

0 comments on commit dab56ff

Please sign in to comment.