automake
[Top][All Lists]
Advanced

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

Re: pthread + SUN Compiler


From: Bob Friesenhahn
Subject: Re: pthread + SUN Compiler
Date: Tue, 16 Feb 2010 11:53:50 -0600 (CST)
User-agent: Alpine 2.01 (GSO 1266 2009-07-14)

On Tue, 16 Feb 2010, address@hidden wrote:

I wrote a configure.ac (below), use autoreconf --install

Everything runs fine if I use
CC=gcc CFLAGS="" LDFLAGS="" ./configure

But if I use
CC=suncc CFLAGS="" LDFLAGS="" ./configure

I get a linking problem.

/bin/bash ../../../libtool --tag=CC   --mode=link suncc -O3 -UPASSIVE -DFFTW
-mt    -o cyto.run cyto_main.o cyto_allocation.o cyto_initialisation.o
cyto_boundary_conditions.o cyto_initial_condition.o cyto_output.o
cyto_equation.o cyto_laplace.o cyto_parallel_derivates.o
../../../common/libutils.a  -lpthread  -L/usr/lib -lmfhdf -ldf -ljpeg -lz -
L/usr/lib -lmpi -L/usr/lib -lfftw3
libtool: link: suncc -O3 -UPASSIVE -DFFTW -mt -o cyto.run cyto_main.o
cyto_allocation.o cyto_initialisation.o cyto_boundary_conditions.o
cyto_initial_condition.o cyto_output.o cyto_equation.o cyto_laplace.o
cyto_parallel_derivates.o  ../../../common/libutils.a -L/usr/lib -lmfhdf -ldf
/usr/lib/libjpeg.so -lz -lmpi /usr/lib/libfftw3.so -pthread -mt


I can't figure out where the pthread is come from.

If it is not hard-coded in the configure script, then the most likely place it comes from is a library used in your link which uses threads, but which was built with GCC rather than the Sun compiler. Libtool stores the -pthread option in the installed .la file. The .la files are just ASCII text so you can easily inspect their content.

Bob
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




reply via email to

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