Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-1593

Excessive use of -pthread

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.6.0
    • 4.4.0
    • Build tools: qmake
    • None

      I've seen that myself but now the first user asks about it:

      ====================================================
      Hi,

      While using Qt 4.4-tp1 I noticed the following interesting little thing on
      Linux. I compile my little app that uses Phonon, Taglib and some other small
      features and noticed that -pthread is present on the link line "a few" times:

      g++ Wl,-no-undefined -Wl,-rpath,/opt/qt-4.4-tp1/lib
      -o sm <loads of object files>
      -L/opt/qt-4.4-tp1/lib -llirc_client -ltag -lphonon -L/opt/qt-4.4-tp1/lib
      -lQtDBus -pthread -pthread -pthread -pthread -pthread -pthread -ldbus-1 -lQtXml
      -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -L/usr/X11R6/lib
      -pthread -pthread -pthread -pthread -pthread -pthread -lQtSql -pthread -pthread -lQtGui -lpng
      -lSM -lICE -pthread -pthread -lXrender -lXrandr -lfreetype -lfontconfig -lXext -lX11 -lQtNetwork
      -pthread -pthread -lQtCore -lz -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread

      The .pro file contains nothing magical and apart from:

      TEMPLATE = app
      TARGET = sm
      DEPENDPATH += .

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            stormols Marius Storm-Olsen
            hjk hjk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes