[omniORB] forking and linking with -lpthread

Eric Marsden emarsden@laas.fr
Fri, 29 Mar 2002 09:56:33 +0100


>>>>> "cm" == Christof Meerwald <cmeerw@web.de> writes:

  cm> AFAIK, glibc includes some functions optimized for
  cm> single-threaded programs (defined as weak symbols) and
  cm> libpthreads provides the multi-threaded versions of these
  cm> functions. Only If you link with pthreads the multi-thread aware
  cm> functions are used, otherwise only the single-thread functions
  cm> are used.

thanks for your explanation. If the omniThreads library had a dynamic
dependency on the pthreads library, would that be sufficient
automatically to pull in pthreads if one links with -lomnithreads?

,----
| % ldd libomnithread.so
|         libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x4000e000)
|         libm.so.6 => /lib/libm.so.6 (0x40058000)
|         libc.so.6 => /lib/libc.so.6 (0x4007a000)
|         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
`----

-- 
Eric Marsden                          <URL:http://www.laas.fr/~emarsden/>