On (14/09/07 22:02) Grant Edwards wrote: > On 2007-09-14, Grant Edwards <[EMAIL PROTECTED]> 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!! > > -- > [EMAIL PROTECTED] 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 -- [EMAIL PROTECTED] mailing list