Commit 640d68e8 authored by Daniel Salzman's avatar Daniel Salzman

libknot: remove lmdb_LIBS from the pkg-config file if embedded LMDB is used

fixes #615
parent 42dcc44b
...@@ -466,12 +466,14 @@ AS_IF([test "$with_lmdb" != "no"],[ ...@@ -466,12 +466,14 @@ AS_IF([test "$with_lmdb" != "no"],[
AS_IF([test "$have_lmdb" != "no"],[ AS_IF([test "$have_lmdb" != "no"],[
AC_SUBST([lmdb_LIBS]) AC_SUBST([lmdb_LIBS])
enable_lmdb=shared enable_lmdb=shared
external_lmdb_LIBS=$lmdb_LIBS
],[ ],[
enable_lmdb=embedded enable_lmdb=embedded
lmdb_CFLAGS="-I\$(top_srcdir)/src/contrib/lmdb" lmdb_CFLAGS="-I\$(top_srcdir)/src/contrib/lmdb"
]) ])
AM_CONDITIONAL([HAVE_LMDB], test "$enable_lmdb" = "shared") AM_CONDITIONAL([HAVE_LMDB], test "$enable_lmdb" = "shared")
AC_SUBST([lmdb_CFLAGS]) AC_SUBST([lmdb_CFLAGS])
AC_SUBST([external_lmdb_LIBS])
# LMDB mapping sizes # LMDB mapping sizes
conf_mapsize_default=500 conf_mapsize_default=500
......
...@@ -9,5 +9,5 @@ URL: https://www.knot-dns.cz ...@@ -9,5 +9,5 @@ URL: https://www.knot-dns.cz
Version: @PACKAGE_VERSION@ Version: @PACKAGE_VERSION@
Requires.private: libdnssec = @PACKAGE_VERSION@ Requires.private: libdnssec = @PACKAGE_VERSION@
Libs: -L${libdir} -lknot Libs: -L${libdir} -lknot
Libs.private: -lm @lmdb_LIBS@ Libs.private: -lm @external_lmdb_LIBS@
Cflags: -I${includedir} @lmdb_CFLAGS@ Cflags: -I${includedir}
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