Re: pkg-config 0.13



On Sat, 2002-09-21 at 02:33, James Henstridge wrote:
> The "-pthread" bit is correct.  The "-pthread" argument tells the 
> compiler/linker to compile a threaded program.  On Linux, this is 
> roughly equivalent to definining _REENTRANT and linking with -lpthread, 
> but this is not so on every architecture.
> 
> Rather than trying to work out what flags to define on each 
> architecture, it is easier to just get the compiler/linker to do it 
> (which they can already do).  The problem was that pkg-config < 0.13 
> didn't pass the -pthread argument through for "pkg-config --libs" in all 
> cases.

ahh i see, thanks for the detailed information.

.. but. i detected that some cvs modules fail linking because of missing
stuff. this don't happen if i pass -lpthreads to it everything compiles
fine. with -pthreads i get missing stuff like this in Orbit2 (this one
got fixed) and now in libbonobo/test/

libgthread-2.0.so: undefined reference to `pthread_create'
libgthread-2.0.so: undefined reference to `pthread_getspecific'
libgthread-2.0.so: undefined reference to `pthread_key_create'
libgthread-2.0.so: undefined reference to `pthread_attr_setstacksize'
libgthread-2.0.so: undefined reference to `pthread_mutex_trylock'
libgthread-2.0.so: undefined reference to `pthread_join'
libgthread-2.0.so: undefined reference to `pthread_cond_timedwait'
libgthread-2.0.so: undefined reference to `pthread_setspecific'

so i assume that these modules in cvs needs some fixes right ? to accept
-pthread by adding some environment variables - instead -lpthread.

-- 
Name....: Ali Akcaagac
Status..: Student Of Computer & Economic Science
E-Mail..: mailto:ali akcaagac stud fh-wilhelmshaven de
WWW.....: http://www.fh-wilhelmshaven.de/~akcaagaa




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]