On Tue, 16 Feb 2010, spam...@gmx.info 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
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/