1 |
On (14/09/07 22:02) Grant Edwards wrote: |
2 |
> On 2007-09-14, Grant Edwards <grante@××××.com> wrote: |
3 |
> > I need to create a statically linked program that uses libtcl, |
4 |
> > but I only seem to have a shared libtcl. The ebuild for |
5 |
> > dev-lang/tcl doesn't appear to have any sort of static/dynamic |
6 |
> > USE flags. |
7 |
> > |
8 |
> > Hmm. What does the "debug" flag do? Is that a cryptic way of |
9 |
> > saying "also build static libraries"? |
10 |
> |
11 |
> |
12 |
> Apparently not. Addign debug to tcl's USE flags didn't do |
13 |
> anything (that I can see). |
14 |
> |
15 |
> EXTRA_ECONF="--enable-static" didn't do anything either. |
16 |
> |
17 |
> EXTRA_ECONF="--disable-shared" built static libraries but |
18 |
> didn't build shared ones (and removed the existing ones). |
19 |
> |
20 |
> I need both shared and static libraries, so --disable-shared |
21 |
> isn't an option. |
22 |
> |
23 |
> How do I get both static and shared libraries? |
24 |
> |
25 |
> -- |
26 |
> Grant Edwards grante Yow! I'm not an Iranian!! |
27 |
> at I voted for Dianne |
28 |
> visi.com Feinstein!! |
29 |
> |
30 |
> -- |
31 |
> gentoo-user@g.o mailing list |
32 |
> |
33 |
Hi, |
34 |
|
35 |
The 'tcl' ebuild doesn't depend on anything (beside glibc), USE="debug threads". |
36 |
IUSE="debug threads" |
37 |
DEPEND="" |
38 |
$ ldd /usr/lib/libtcl.so |
39 |
linux-gate.so.1 => (0xb7fd2000) |
40 |
libdl.so.2 => /lib/libdl.so.2 (0xb7f25000) |
41 |
libpthread.so.0 => /lib/libpthread.so.0 (0xb7f0e000) |
42 |
libm.so.6 => /lib/libm.so.6 (0xb7ee6000) |
43 |
libc.so.6 => /lib/libc.so.6 (0xb7d9c000) |
44 |
/lib/ld-linux.so.2 (0x80000000) |
45 |
Please check if these are glibc libs only. |
46 |
You can use EXTRA_ECONF to build an app which will include |
47 |
/usr/lib/libtcl.so in it's code (statically build). |
48 |
Or compile 'tcl' (static) to a different location. |
49 |
Only afterwards you'll have to pass an argument to the app which location to |
50 |
link against. |
51 |
HTH.Rumen |
52 |
-- |
53 |
gentoo-user@g.o mailing list |