* [gentoo-user] How to get a static libtcl built?
@ 2007-09-14 21:29 Grant Edwards
2007-09-14 21:43 ` Dale
2007-09-14 22:02 ` Grant Edwards
0 siblings, 2 replies; 5+ messages in thread
From: Grant Edwards @ 2007-09-14 21:29 UTC (permalink / raw
To: gentoo-user
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"?
--
Grant Edwards grante Yow! Nipples, dimples,
at knuckles, NICKLES,
visi.com wrinkles, pimples!!
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] How to get a static libtcl built?
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
1 sibling, 1 reply; 5+ messages in thread
From: Dale @ 2007-09-14 21:43 UTC (permalink / raw
To: gentoo-user
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"?
>
>
I have tcl in my make.conf.
tcl - Adds support the Tcl language
Is that what you need?
Dale
:-) :-)
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-user] Re: How to get a static libtcl built?
2007-09-14 21:43 ` Dale
@ 2007-09-14 21:49 ` Grant Edwards
0 siblings, 0 replies; 5+ messages in thread
From: Grant Edwards @ 2007-09-14 21:49 UTC (permalink / raw
To: gentoo-user
On 2007-09-14, Dale <dalek1967@bellsouth.net> wrote:
> 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"?
>>
>>
>
> I have tcl in my make.conf.
>
> tcl - Adds support the Tcl language
>
> Is that what you need?
No. I believe that determines an application should include
TCL support (I assume as an embedded scripted language).
I need to know how to get both static and dynamic verions of
libtcl built. Only the dynamic version of libtcl seems to be
built when one emerges dev-lang/tcl. I also need the static
version.
--
Grant Edwards grante Yow! LBJ, LBJ, how many
at JOKES did you tell today??!
visi.com
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-user] Re: How to get a static libtcl built?
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 22:02 ` Grant Edwards
2007-09-15 4:50 ` Rumen Yotov
1 sibling, 1 reply; 5+ messages in thread
From: Grant Edwards @ 2007-09-14 22:02 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Re: How to get a static libtcl built?
2007-09-14 22:02 ` Grant Edwards
@ 2007-09-15 4:50 ` Rumen Yotov
0 siblings, 0 replies; 5+ messages in thread
From: Rumen Yotov @ 2007-09-15 4:50 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-09-15 5:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox