[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, 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 -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, -o .libs/
(cd .libs && rm -f && ln -s
(cd .libs && rm -f && ln -s
(cd .libs && rm -f && ln -s ../

If we look at the first part, the -lc_r is compiled into it, but once it creates the file, it forgets that I need to have that there, is there a parameter that I need to set somewhere in the script or file so that libtool picks up that I need the pthreads library linked in?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]