From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wolfgang Jenkner Newsgroups: gmane.emacs.devel Subject: Re: Unable to find libgif/libungif on RHEL 6 Date: Fri, 11 Sep 2015 14:23:31 +0200 Message-ID: <85oah9w2sx.fsf@iznogoud.viz> References: <55F1563F.7000604@cs.ucla.edu> <851te6m12r.fsf@iznogoud.viz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1441975035 11081 80.91.229.3 (11 Sep 2015 12:37:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Sep 2015 12:37:15 +0000 (UTC) Cc: Paul Eggert , Stefan Monnier , Emacs developers To: Kaushal Modi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 11 14:37:04 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZaNZd-0003ni-FL for ged-emacs-devel@m.gmane.org; Fri, 11 Sep 2015 14:37:01 +0200 Original-Received: from localhost ([::1]:56076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaNZc-0001ih-Up for ged-emacs-devel@m.gmane.org; Fri, 11 Sep 2015 08:37:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaNZI-0001f7-2z for emacs-devel@gnu.org; Fri, 11 Sep 2015 08:36:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZaNZC-0007QH-Ot for emacs-devel@gnu.org; Fri, 11 Sep 2015 08:36:40 -0400 Original-Received: from b2bfep14.mx.upcmail.net ([62.179.121.59]:49637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaNZC-0007M6-Eo for emacs-devel@gnu.org; Fri, 11 Sep 2015 08:36:34 -0400 Original-Received: from edge11.upcmail.net ([192.168.13.81]) by b2bfep14.mx.upcmail.net (InterMail vM.8.01.05.18 201-2260-151-151-20140610) with ESMTP id <20150911123632.GADO5552.b2bfep14-int.chello.at@edge11.upcmail.net> for ; Fri, 11 Sep 2015 14:36:32 +0200 Original-Received: from iznogoud.viz ([91.119.93.245]) by edge11.upcmail.net with edge id FocX1r00K5He4FP0BocXdJ; Fri, 11 Sep 2015 14:36:32 +0200 X-SourceIP: 91.119.93.245 Original-Received: from wolfgang by iznogoud.viz with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1ZaNZ9-0000Tm-FA; Fri, 11 Sep 2015 14:36:31 +0200 Mail-Followup-To: Kaushal Modi , Stefan Monnier , Paul Eggert , Emacs developers User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 62.179.121.59 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189833 Archived-At: On Fri, Sep 11 2015, Kaushal Modi wrote: > The LDFLAGS did the magic, thank you! Actually, ./configure ... LDFLAGS=-L/path/to/the/lib64 CPPFLAGS=-I/path/to/gifincludedir should be enough since configure will add -lgif to LIBS anyway (or do something else to that effect). > (I wonder why setting the $LD_LIBRARY_PATH and $PKG_CONFIG_PATH env vars > did not help.) LD_LIBRARY_PATH is used at runtime by the dynamic linker ld.so(8), whereas LDFLAGS belongs to the GNU buildsystem, see (info "(autoconf) Preset Output Variables"). PKG_CONFIG_PATH is a search path for *.pc files, which giflib doesn't install (as Paul already mentioned), see pkg-config(1). There are some (completely untested) variations on the theme: One could pass LDFLAGS="-L/path/to/the/lib64 -Wl,-rpath=/path/to/the/lib64" to configure and so avoid changing LD_LIBRARY_PATH. Or, if you have the static lib64/libgif.a you could link emacs to it instead (by simply moving away the lib64/libgif.so* you have in your home directory before building emacs); in this case, you could even completely remove the giflib stuff from your home directory after building emacs.