Skip to content

Commit

Permalink
Added ldl incase if it is found in a separate dl library
Browse files Browse the repository at this point in the history
  • Loading branch information
U-LPT00135\sumeetc authored and U-LPT00135\sumeetc committed Oct 23, 2015
1 parent 88376d9 commit d69685b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -865,7 +865,7 @@ AC_CHECK_LIB(pthreads, pthread_create,[], [AC_CHECK_LIB(pthread, pthread_create)
AC_CHECK_LIB(ssl, SSL_read, [], [AC_MSG_ERROR([ssl library not found])])
AC_CHECK_LIB([crypto], [SHA1_Init], [], [AC_MSG_ERROR([libcrypto not found])])
AC_CHECK_LIB(z, compress,,AC_MSG_ERROR([no zlib; please install zlib or equivalent]))
AC_CHECK_LIB(c, dlopen, LIBDL="", [AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")])
AC_CHECK_LIB(c, dlopen, [AC_SUBST(ADD_LIBDL,[])], [AC_CHECK_LIB(dl, dlopen, [AC_SUBST(ADD_LIBDL,[-ldl])] )])
AC_CHECK_LIB(rt, clock_nanosleep, [AC_DEFINE(HAVE_CLOCK_NANOSLEEP, 1, [Define if you have clock_nanosleep()])], [])

if test "x$mod_sdormsql" = "xyes"; then
Expand Down
2 changes: 1 addition & 1 deletion src/autotools/Makefile.am
Expand Up @@ -531,5 +531,5 @@ libffead_framework_la_LDFLAGS = -lffead_common -no-undefined
noinst_PROGRAMS = CHS
CHS_SOURCES = ../server/CHServer.cpp
CHS_LDFLAGS= -no-undefined
CHS_LDADD = -lffead_common -lffead_framework
CHS_LDADD = -lffead_common -lffead_framework @ADD_LIBDL@

0 comments on commit d69685b

Please sign in to comment.