Skip to content

Commit

Permalink
tools/: Link curve_keygen with a c++ linker
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
algernon committed Dec 12, 2013
1 parent b4395d1 commit b50ed02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/Makefile.am
Original file line number Diff line number Diff line change
@@ -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

File renamed without changes.

0 comments on commit b50ed02

Please sign in to comment.