From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96651634613335.tru64-unix-managers.marc@archive.invalid> From: Keith Parkins Date: Thu, 17 Aug 2000 12:46:28 +0000 To: tru64-unix-managers Subject: SUMMARY: Posix threads (fwd) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96651634613335 Thanks to all that responded! The main gist of the answers that I received were that there was a static version of libpthread, but that it was a really bad idea to use it as you would have to at least relink your binaries after any patch release of Tru64 UNIX. Thanks again! Keith Keith Parkins U of R Computer Science kparkins@cs.rochester.edu Computer Science Building, Room 606 (716)275-1118 ---------- Forwarded message ---------- Date: Wed, 16 Aug 2000 17:05:39 -0400 From: "Lampert, Pat" To: 'Keith Parkins' Subject: RE: Posix threads A static version of libpthread is available on the Tru64 UNIX Associated Product CD vol. 1 as part of the Development Enhancement tools. Please note that if you elect to link a threads program statically on Tru64 UNIX you will need to relink the program for every patch release of every version of Tru64 UNIX. Any changes made to the kernel threads (which nearly every patch release touches) affects compatibility with the pthreads library. When thread patches are made a new libpthread.a is supplied in the patch kit. We strongly recommend that customer's use the shared object version of the threads library to avoid having numerous versions of your threaded executable for each version and patch level of the operating system. Pat Lampert Compaq Services > ---------- > From: Keith Parkins[SMTP:kparkins@cs.rochester.edu] > > Hi, > > I currently have a user that wants to create a static binary using posix > threads. I noticed that OSFBASE440 only installs the dynamic library > (.so), but no archive (.a). I am not certain why, but the user needs to > have static binaries. Using the -non_shared flag produces the following > output: > > indus ~/thread_test $ cc -o self_static -DTEST_SELF -non_shared -pthread > > thd.c > > ld: > > Can't locate file for: -lpthread > > removing the flag build a nice dynamically linked lib. > > Any ideas?