From b50ed02a20ea51669db0f5e34d2edfe2ca8bf280 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 12 Dec 2013 11:44:12 +0100 Subject: [PATCH] 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: Gergely Nagy --- tools/Makefile.am | 4 ++-- tools/{curve_keygen.c => curve_keygen.cpp} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename tools/{curve_keygen.c => curve_keygen.cpp} (100%) diff --git a/tools/Makefile.am b/tools/Makefile.am index d6386b4a..5afbacc7 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -1,9 +1,9 @@ -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 diff --git a/tools/curve_keygen.c b/tools/curve_keygen.cpp similarity index 100% rename from tools/curve_keygen.c rename to tools/curve_keygen.cpp