]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Do not link gnutls against librt unlress it is really necessary.
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 26 Nov 2013 16:19:43 +0000 (17:19 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 27 Nov 2013 10:41:45 +0000 (11:41 +0100)
configure.ac

index 859d04bf28833487ac3ee3cbd34f36aec06a6fe5..8dc1b934e9bb89479eb85be6c4244d69d63ed88e 100644 (file)
@@ -268,6 +268,7 @@ if [ test "$enable_fips" = "yes" ];then
     dnl clock_gettime precision is needed on the FIPS140 DRBG.
     if test "$ac_cv_func_clock_gettime" != "yes";then
       AC_LIB_HAVE_LINKFLAGS(rt,, [#include <time.h>], [clock_gettime (0, 0);])
+      gnutls_needs_librt=yes
     fi
 
     AC_DEFINE([ENABLE_FIPS140], 1, [Enable FIPS140-2 mode])