LINUX.ORG.RU

qmake и pthread


0

0

Заметил в логах компиляции программы на Qt:

-pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -lQtSql -pthread -pthread -lQtXmlPatterns -pthread -pthread -pthread -pthread -pthread -pthread -lQtXml -pthread -pthread -lQtGui -pthread -lpng -lfreetype -lgobject-2.0 -lSM -lICE -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtNetwork -pthread -pthread -lQtCore -lz -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread

Это специально, чтоб наверняка gcc понял, что от него хотят? При том, что в info gcc написано:

`-mt'
`-pthread'
     Add support for multithreading using the POSIX threads library.
     This option sets flags for both the preprocessor and linker.  It
     does not affect the thread safety of object code produced by the
     compiler or that of libraries supplied with it.  These are HP-UX
     specific flags.
★★★★★

Надо полагать, что там что-то с файлом проекта напутано. Гцц не надо столь настойчиво повторять флаги, он и обидиться может.

shutty
()

Это косяки qmake'a. С cmake'om такого не наблюдается.

UVV ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.