From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OtQLh-00011B-Bn for garchives@archives.gentoo.org; Wed, 08 Sep 2010 19:30:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CCC4EE0B49; Wed, 8 Sep 2010 19:29:40 +0000 (UTC) Received: from mail-iw0-f181.google.com (mail-iw0-f181.google.com [209.85.214.181]) by pigeon.gentoo.org (Postfix) with ESMTP id AF024E0B49 for ; Wed, 8 Sep 2010 19:29:40 +0000 (UTC) Received: by iwn39 with SMTP id 39so301017iwn.40 for ; Wed, 08 Sep 2010 12:29:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=HamdvqIxr82l4A/uOyxEDO7oIPV7Y0ayoCd8QmQ1up4=; b=euGo9N/Qk4TJ2I5p6+6NptGhoT1Hl3k0eu5G+Vlcr3rxZ8Ky5rtGvKOQsTy1pTkXFT ksM5QcQiNkTClcn6nt1gY/RwDoMPnBWMWrwNkvAgM7LjKm/nka9WS1ZJGK5YHI/JWu4s saf/lLH5/Cxgs194X0cHpDIrfGLd7FtfWLgWY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=OyDuiLZTrflq/tX3pz0awpETFHiEmRjsMZ3KTq8rDnB/mfXBzSfDcVnUPepehi0XbE sMDA3s8K+YIvwRBneEG8hs8SBOkxg96swjB0xIaneqHpNuWptkMg05kQMeI772AKq4YL 6s4jhAKMRn08EQMw84mL2+wP0RbxhEdyMiZXQ= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.231.10.134 with SMTP id p6mr4275221ibp.50.1283974180369; Wed, 08 Sep 2010 12:29:40 -0700 (PDT) Received: by 10.231.37.138 with HTTP; Wed, 8 Sep 2010 12:29:40 -0700 (PDT) In-Reply-To: References: Date: Wed, 8 Sep 2010 21:29:40 +0200 Message-ID: Subject: Re: [gentoo-user] Re: Shared libraries in Gentoo From: Al To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: 376297d9-5438-40c0-8ade-f08d8ca6d2b3 X-Archives-Hash: 175668f3d147d17c77d403b133ce06e3 >> How does a program in Gentoo know, where to look for shared libraries? > > Try running "ldconfig -p", which relates to Nikos's comment about > ld.so.conf. > As you both indicated me in into that direction I played with libtool. During usage it gives a comprehensive answer to our question: If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. Al