From: Rumen Yotov <rumen@qrypto.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: How to get a static libtcl built?
Date: Sat, 15 Sep 2007 07:50:47 +0300 [thread overview]
Message-ID: <20070915045047.GA24134@qrypto.org> (raw)
In-Reply-To: <fcf0dk$lo1$1@sea.gmane.org>
On (14/09/07 22:02) Grant Edwards wrote:
> On 2007-09-14, Grant Edwards <grante@visi.com> 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
prev parent reply other threads:[~2007-09-15 5:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-14 21:29 [gentoo-user] How to get a static libtcl built? Grant Edwards
2007-09-14 21:43 ` Dale
2007-09-14 21:49 ` [gentoo-user] " Grant Edwards
2007-09-14 22:02 ` Grant Edwards
2007-09-15 4:50 ` Rumen Yotov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070915045047.GA24134@qrypto.org \
--to=rumen@qrypto.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox