From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IWPlp-0005wO-Ig for garchives@archives.gentoo.org; Sat, 15 Sep 2007 05:00:41 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l8F4q3Q1027862; Sat, 15 Sep 2007 04:52:03 GMT Received: from qrypto.org (connectioncable-084.headoff.net [217.30.222.84] (may be forged)) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l8F4luAi023069 for ; Sat, 15 Sep 2007 04:47:56 GMT Received: from localhost (unknown [192.168.0.2]) by qrypto.org (Postfix) with ESMTP id 2DB191B33E1 for ; Sat, 15 Sep 2007 07:46:26 +0300 (EEST) Date: Sat, 15 Sep 2007 07:50:47 +0300 From: Rumen Yotov To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: How to get a static libtcl built? Message-ID: <20070915045047.GA24134@qrypto.org> Mail-Followup-To: gentoo-user@lists.gentoo.org References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: ca9ee083-84a9-49b8-b921-50d8f4ba2ed8 X-Archives-Hash: bab9d7655c1e568c003423928c8eb259 On (14/09/07 22:02) Grant Edwards wrote: > On 2007-09-14, Grant Edwards wrote: > > I need to create a statically linked program that uses libtcl, > > but I only seem to have a shared libtcl. The ebuild for > > dev-lang/tcl doesn't appear to have any sort of static/dynamic > > USE flags. > > > > Hmm. What does the "debug" flag do? Is that a cryptic way of > > saying "also build static libraries"? > > > Apparently not. Addign debug to tcl's USE flags didn't do > anything (that I can see). > > EXTRA_ECONF="--enable-static" didn't do anything either. > > EXTRA_ECONF="--disable-shared" built static libraries but > didn't build shared ones (and removed the existing ones). > > I need both shared and static libraries, so --disable-shared > isn't an option. > > How do I get both static and shared libraries? > > -- > Grant Edwards grante Yow! I'm not an Iranian!! > at I voted for Dianne > visi.com Feinstein!! > > -- > gentoo-user@gentoo.org mailing list > Hi, The 'tcl' ebuild doesn't depend on anything (beside glibc), USE="debug threads". IUSE="debug threads" DEPEND="" $ ldd /usr/lib/libtcl.so linux-gate.so.1 => (0xb7fd2000) libdl.so.2 => /lib/libdl.so.2 (0xb7f25000) libpthread.so.0 => /lib/libpthread.so.0 (0xb7f0e000) libm.so.6 => /lib/libm.so.6 (0xb7ee6000) libc.so.6 => /lib/libc.so.6 (0xb7d9c000) /lib/ld-linux.so.2 (0x80000000) Please check if these are glibc libs only. You can use EXTRA_ECONF to build an app which will include /usr/lib/libtcl.so in it's code (statically build). Or compile 'tcl' (static) to a different location. Only afterwards you'll have to pass an argument to the app which location to link against. HTH.Rumen -- gentoo-user@gentoo.org mailing list