mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-14 02:57:47 +01:00
libstdc++ depends on libm on some platforms
This commit is contained in:
parent
495f0d105f
commit
ab27f84b14
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user