Commit ab27f84b authored by Martin Lucina's avatar Martin Lucina

libstdc++ depends on libm on some platforms

parent 495f0d10
......@@ -58,8 +58,10 @@ AC_PROG_AWK
AC_CHECK_LIB([pthread], [pthread_create])
# If using GNU C++, libstdc++ must be available.
if test "x$GXX" = "xyes"; 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++])], [-lm])
[AC_MSG_ERROR([cannot link with -lstdc++])])
fi
# Extra CXXFLAGS are appended at the end of CXXFLAGS for libzmq.
......
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