[Pkg-gnupg-commit] [libgpg-error] 12/35: For Solaris, add -lrt correctly.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Apr 25 21:47:11 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository libgpg-error.

commit f9fc565129293f47cbfe4da48fcd6099e9ce5508
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Fri Mar 4 08:12:36 2016 +0900

    For Solaris, add -lrt correctly.
    
    * configure.ac (LIB_SCHED_YIELD): Not avoiding defining LIB.
    
    --
    
    This fixes commit 5168b97 for Solaris linking issue.  It tried to add
    -lrt for build on Solaris for gpg-error, but it wrongly avoids adding
    it also to LIB, which actually is needed.
    
    Reported-by: Tom G. Christensen <tgc at jupiterrise.com>
    
    Thanks also to Jörn Clausen, who submitted a report to our BTS.
    
    GnuPG-bug-id: 1671
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
 configure.ac | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 9882d02..6d25b51 100644
--- a/configure.ac
+++ b/configure.ac
@@ -408,18 +408,13 @@ config_libs="-lgpg-error"
 #
 # Check for other libraries (now only for -lrt).
 #
-# Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
-# programs in the package would end up linked with that potentially-shared
-# library, inducing unnecessary run-time overhead.
 LIB_SCHED_YIELD=
 AC_SUBST([LIB_SCHED_YIELD])
-gl_saved_libs=$LIBS
 AC_SEARCH_LIBS([sched_yield], [rt posix4],
                [if test "$ac_cv_search_sched_yield" != "none required"; then
                   LIB_SCHED_YIELD=$ac_cv_search_sched_yield
                   config_libs="$config_libs $LIB_SCHED_YIELD"
                 fi])
-LIBS=$gl_saved_libs
 
 #
 # Prepare building of estream

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/libgpg-error.git



More information about the Pkg-gnupg-commit mailing list