Commit b50ed02a authored by Gergely Nagy's avatar Gergely Nagy

tools/: Link curve_keygen with a c++ linker

When trying to linking curve_keygen as if it was a C program, linking
fails (at least with gcc 4.8 on Debian testing) because it can't find
C++ symbols. Linking with g++ instead fixes the issue.

To achieve this, the source is renamed to curve_keygen.cpp, and
tools/Makefile.am is updated accordingly.
Signed-off-by: 's avatarGergely Nagy <algernon@balabit.hu>
parent b4395d15
EXTRA_DIST = curve_keygen.c
EXTRA_DIST = curve_keygen.cpp
INCLUDES = -I$(top_srcdir)/include
bin_PROGRAMS = curve_keygen
curve_keygen_LDADD = $(top_builddir)/src/libzmq.la
curve_keygen_SOURCES = curve_keygen.c
curve_keygen_SOURCES = curve_keygen.cpp
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