Commit 7231189c authored by Daniel Salzman's avatar Daniel Salzman

libdnssec: don't link against libm

closes #628
parent 0fc6bbd1
......@@ -588,7 +588,15 @@ AC_SEARCH_LIBS([dlopen], [dl], [
])
LIBS="$save_LIBS"
AC_SEARCH_LIBS([pow], [m], [], [AC_MSG_ERROR([math not found])])
save_LIBS="$LIBS"
AC_SEARCH_LIBS([pow], [m], [
math_LIBS="$ac_cv_search_pow"
AC_SUBST([math_LIBS])
],[
AC_MSG_ERROR([math not found])
])
LIBS="$save_LIBS"
AC_SEARCH_LIBS([clock_gettime], [rt])
# Checks for header files.
......
......@@ -3,7 +3,7 @@ pkgconfig_DATA += libknot.pc
libknot_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) $(lmdb_CFLAGS)
libknot_la_LDFLAGS = $(AM_LDFLAGS) $(libknot_VERSION_INFO) $(LDFLAG_EXCLUDE_LIBS)
libknot_la_LIBADD = libcontrib.la libdnssec.la $(lmdb_LIBS)
libknot_la_LIBADD = libcontrib.la libdnssec.la $(math_LIBS) $(lmdb_LIBS)
include_libknotdir = $(includedir)
nobase_include_libknot_HEADERS = \
......
......@@ -3,6 +3,7 @@ pkgconfig_DATA += libzscanner.pc
libzscanner_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY)
libzscanner_la_LDFLAGS = $(AM_LDFLAGS) $(libzscanner_VERSION_INFO) $(LDFLAG_EXCLUDE_LIBS)
libzscanner_la_LIBADD = $(math_LIBS)
EXTRA_DIST += \
libzscanner/scanner.rl \
......
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