[Qt-creator] qmake generated Makefiles

André Pönitz andre.poenitz at nokia.com
Fri Nov 27 13:20:19 CET 2009


On Friday 27 November 2009 12:21:30 ext Jordi Pujol wrote:
> I wonder why qmake uses to generate duplicate entries in library link steps on Makefiles.
> 
> So I see things like this :
> 
> g++ -m64 -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.5.2/lib -shared -Wl,-soname,libPLG_PQM.so.1 -o libPLG_PQM.so.1.0.0 ../../../tmp/obj/linux-g++/release/PLG_PQM/PLG_PQM.o ../../../tmp/obj/linux-g++/release/PLG_PQM/AG_PQM.o ../../../tmp/obj/linux-g++/release/PLG_PQM/BO_Curriculums.o ../../../tmp/obj/linux-g++/release/PLG_PQM/BO_Cursos.o ../../../tmp/obj/linux-g++/release/PLG_PQM/BO_EvalVigs.o ../../../tmp/obj/linux-g++/release/PLG_PQM/BO_Eventos.o ../../../tmp/obj/linux-g++/release/PLG_PQM/BO_EvFinals.o ../../../tmp/obj/linux-g++/release/PLG_PQM/BO_EvInics.o ../../../tmp/obj/linux-g++/release/PLG_PQM/BO_Puetras.o ../../../tmp/obj/linux-g++/release/PLG_PQM/BO_TemasPdt.o ../../../tmp/obj/linux-g++/release/PLG_PQM/QE_EvalInicial.o -L/usr/local/Trolltech/Qt-4.5.2/lib -L/home/jpujol/workspace/EPC/src/plugins/PLG_PQM/../../../../MPF/bin -L/home/jpujol/workspace/EPC/src/plugins/PLG_PQM/../../../bin -lEPC_Model -lEPC_ModelCDF -lEPC_ModelCOM -lMPFCore -lMPFLib -lQtGui -L/usr/local/Trolltech/Qt-4.5.2/lib -L/usr/X11R6/lib64 -pthread -lpng -lfreetype -lSM -lICE -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtCore -lz -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
> 
> Why appear multiple identical entries for -pthread ?

Because the link line is built from separate parts coming from different
places of the build system. Having multiple of them does not hurt.

Andre'




More information about the Qt-creator-old mailing list