From: Bert Hubert Date: Fri, 2 Nov 2012 10:59:11 +0000 (+0000) Subject: add -lrt for static compilation of recent Botans X-Git-Tag: auth-3.2-rc1~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a1c05435d03012ae647bb110e56c9476cc762d7;p=thirdparty%2Fpdns.git add -lrt for static compilation of recent Botans git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2845 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/configure.ac b/configure.ac index c95281480c..8af0a74da6 100644 --- a/configure.ac +++ b/configure.ac @@ -143,7 +143,7 @@ solaris2.6 | solaris2.7) linux*) AC_DEFINE(HAVE_IPV6,1,[If the host operating system understands IPv6]) DYNLINKFLAGS="-rdynamic" - LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -lrt" THREADFLAGS="-pthread" CXXFLAGS="-D_GNU_SOURCE $CXXFLAGS" ;; @@ -220,7 +220,7 @@ AM_CONDITIONAL(CRYPTOPP,test x"$enable_cryptopp" = "xyes") if test "x$enable_botan110" = "xyes" then - PKG_CHECK_MODULES(BOTAN110, botan-1.10, HAVE_BOTAN110=yes, AC_MSG_ERROR([+Could not find botan 1.10])) + PKG_CHECK_MODULES(BOTAN110, botan-1.10, HAVE_BOTAN110=yes, AC_MSG_ERROR([Could not find botan 1.10])) AC_SUBST(BOTAN110_LIBS) AC_SUBST(BOTAN110_CFLAGS) AC_DEFINE(HAVE_BOTAN110,1,[If we have botan 1.10]) @@ -228,7 +228,7 @@ fi if test "x$enable_botan18" = "xyes" then - PKG_CHECK_MODULES(BOTAN18, botan-1.8, HAVE_BOTAN18=yes, AC_MSG_ERROR([+Could not find botan 1.8])) + PKG_CHECK_MODULES(BOTAN18, botan-1.8, HAVE_BOTAN18=yes, AC_MSG_ERROR([Could not find botan 1.8])) AC_SUBST(BOTAN18_LIBS) AC_SUBST(BOTAN18_CFLAGS) AC_DEFINE(HAVE_BOTAN18,1,[If we have botan 1.8]) diff --git a/pdns/Makefile.am b/pdns/Makefile.am index 7e8b2b2a8d..349742cb1a 100644 --- a/pdns/Makefile.am +++ b/pdns/Makefile.am @@ -66,7 +66,7 @@ pdns_server_CPPFLAGS = $(AM_CPPFLAGS) if BOTAN110 pdns_server_SOURCES += botan110signers.cc botansigners.cc -pdns_server_LDADD += $(BOTAN110_LIBS) -lgmp +pdns_server_LDADD += $(BOTAN110_LIBS) -lgmp -lrt pdns_server_CPPFLAGS += $(BOTAN110_CFLAGS) endif @@ -106,7 +106,7 @@ pdnssec_CPPFLAGS = $(AM_CPPFLAGS) if BOTAN110 pdnssec_SOURCES += botan110signers.cc botansigners.cc -pdnssec_LDADD += $(BOTAN110_LIBS) -lgmp +pdnssec_LDADD += $(BOTAN110_LIBS) -lgmp -lrt pdnssec_CPPFLAGS += $(BOTAN110_CFLAGS) endif