0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

Compile perf tests with the C++ compiler

This lets us build the binaries in a portable fashion w/o having to worry
about how to link with the C++ runtime.
This commit is contained in:
Martin Lucina 2010-04-10 16:51:22 +02:00
parent c214a24f06
commit f6fa41dd7b
6 changed files with 7 additions and 14 deletions

View File

@ -55,13 +55,6 @@ fi
# Checks for libraries.
AC_CHECK_LIB([pthread], [pthread_create])
# If using GNU C/C++ and static linking, libstdc++ must be available.
if test "x$gnu_compilers" = "xyes" -a "x$enable_shared" = "xno"; then
# libstdc++ depends on libm on some platforms
AC_CHECK_LIB([m], [main])
AC_CHECK_LIB([stdc++], [main], ,
[AC_MSG_ERROR([cannot link with -lstdc++])])
fi
# Extra CXXFLAGS are appended at the end of CXXFLAGS for libzmq.
LIBZMQ_EXTRA_CXXFLAGS=""

View File

@ -7,19 +7,19 @@ endif
noinst_PROGRAMS = local_lat remote_lat local_thr remote_thr $(PGM_EXAMPLES_BINS)
local_lat_LDADD = $(top_builddir)/src/libzmq.la
local_lat_SOURCES = local_lat.c
local_lat_SOURCES = local_lat.cpp
local_lat_CXXFLAGS = -Wall -pedantic -Werror
remote_lat_LDADD = $(top_builddir)/src/libzmq.la
remote_lat_SOURCES = remote_lat.c
remote_lat_SOURCES = remote_lat.cpp
remote_lat_CXXFLAGS = -Wall -pedantic -Werror
local_thr_LDADD = $(top_builddir)/src/libzmq.la
local_thr_SOURCES = local_thr.c
local_thr_SOURCES = local_thr.cpp
local_thr_CXXFLAGS = -Wall -pedantic -Werror
remote_thr_LDADD = $(top_builddir)/src/libzmq.la
remote_thr_SOURCES = remote_thr.c
remote_thr_SOURCES = remote_thr.cpp
remote_thr_CXXFLAGS = -Wall -pedantic -Werror
if BUILD_PGM_EXAMPLES

View File

@ -25,7 +25,7 @@ int main (int argc, char *argv [])
{
const char *bind_to;
int roundtrip_count;
int message_size;
size_t message_size;
void *ctx;
void *s;
int rc;

View File

@ -25,7 +25,7 @@ int main (int argc, char *argv [])
{
const char *bind_to;
int message_count;
int message_size;
size_t message_size;
void *ctx;
void *s;
int rc;

View File

@ -26,7 +26,7 @@ int main (int argc, char *argv [])
{
const char *connect_to;
int roundtrip_count;
int message_size;
size_t message_size;
void *ctx;
void *s;
int rc;