[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pthreads in libtool'd shared library...
From: |
Chris Bowlby |
Subject: |
pthreads in libtool'd shared library... |
Date: |
Fri, 29 Oct 2004 13:59:16 -0300 |
Hi All,
I've been building a standard library for an application that I'm working
on and noticed that once I started to attempt to work in threads the
linking stage seems to have dropped the link to libc_r.so, as shown in the
compiler details below:
/bin/bash ../../../libtool --mode=link g++ -g -O2 -L/usr/local/lib
-L/usr/lib -L/usr/compat/linux/lib -o libtest.la -rpath
/usr/local/data_cop/lib -module -Wsymbolic test.lo -lc_r -lcrypt -lpq -lcipher
g++ -shared -nostdlib /usr/lib/crti.o
/usr/lib/crtbeginS.o .libs/test.o -L/usr/local/lib -L/usr/lib
-L/usr/compat/linux/lib -lcrypt -lpq -lcipher -lstdc++ -lm -lgcc
/usr/lib/crtendS.o /usr/lib/crtn.o -Wl,-soname -Wl,libtest.so.0 -o
.libs/libtest.so.0
(cd .libs && rm -f libtest.so && ln -s libtest.so.0 libtest.so)
(cd .libs && rm -f libtest.so && ln -s libtest.so.0 libtest.so)
creating libtest.la
(cd .libs && rm -f libtest.la && ln -s ../libtest.la libtest.la)
If we look at the first part, the -lc_r is compiled into it, but once it
creates the libtest.so.0 file, it forgets that I need to have that there,
is there a parameter that I need to set somewhere in the configure.ac
script or Makefile.am file so that libtool picks up that I need the
pthreads library linked in?
- pthreads in libtool'd shared library...,
Chris Bowlby <=