Received: (at submit) by debbugs.gnu.org; 4 Dec 2012 18:57:53 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 04 13:57:53 2012 Received: from localhost ([127.0.0.1]:53570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Tfxgm-0001cO-8u for submit <at> debbugs.gnu.org; Tue, 04 Dec 2012 13:57:53 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41048) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <desrt@HIDDEN>) id 1Tfxgk-0001cI-II for submit <at> debbugs.gnu.org; Tue, 04 Dec 2012 13:57:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <desrt@HIDDEN>) id 1Tfxgb-0005Vu-DX for submit <at> debbugs.gnu.org; Tue, 04 Dec 2012 13:57:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:37727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <desrt@HIDDEN>) id 1Tfxgb-0005Vq-99 for submit <at> debbugs.gnu.org; Tue, 04 Dec 2012 13:57:41 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <desrt@HIDDEN>) id 1TfxgU-0008CE-41 for bug-libtool@HIDDEN; Tue, 04 Dec 2012 13:57:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <desrt@HIDDEN>) id 1TfxgR-0005TH-2S for bug-libtool@HIDDEN; Tue, 04 Dec 2012 13:57:34 -0500 Received: from manic.desrt.ca ([207.192.74.61]:42345 helo=mail.desrt.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <desrt@HIDDEN>) id 1TfxgQ-0005T9-Vy for bug-libtool@HIDDEN; Tue, 04 Dec 2012 13:57:31 -0500 Received: from [172.16.1.217] (unknown [24.52.229.81]) by manic.desrt.ca (Postfix) with ESMTPSA id 088C612CDAA for <bug-libtool@HIDDEN>; Tue, 4 Dec 2012 13:51:36 -0500 (EST) Message-ID: <50BE4637.4050807@HIDDEN> Date: Tue, 04 Dec 2012 13:51:35 -0500 From: Ryan Lortie <desrt@HIDDEN> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121017 Thunderbird/16.0.1 MIME-Version: 1.0 To: bug-libtool@HIDDEN Subject: libtool.m4 forgets LD_LIBRARY_PATH when computing sys_lib_dlsearch_path_spec Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -4.2 (----) According to the manpage for ld.so on Linux, libraries are searched for in three places: - LD_LIBRARY_PATH - /etc/ld.so.cache (built from ld.so.conf) - /lib and /usr/lib libtool features a variable named sys_lib_dlsearch_path_spec which is meant to list the library search path with the purpose of excluding these paths from being hardcoded into libraries as -rpath. The Linux case for determining the value of sys_lib_dlsearch_path_spec in libtool.m4 handles both the /etc/ld.so.cache case (by sourcing /etc/ld.so.conf) and hardcodes /lib and /usr/lib. It fails to take LD_LIBRARY_PATH into account, however, resulting in unnecessary -rpath usage for the directories in this variable. It would probably be relatively easy to split up LD_LIBRARY_PATH across the ':' it contains and add the paths to sys_lib_dlsearch_path_spec. I'd do the patch myself but I am (blissfully) unaware of which set of tools (cut? sed?) are considered portable enough to be used from libtool.m4... Thanks for your consideration. Cheers
Ryan Lortie <desrt@HIDDEN>
:bug-libtool@HIDDEN
.
Full text available.bug-libtool@HIDDEN
:bug#13083
; Package libtool
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.