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

Common Linux qplatformdefs.h should not pull in dlfcn.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.6.1
    • 4.4.3
    • Build tools: qmake
    • None
    • 63bd10ae61ed0b877344b217e57eb87f77256e98

    Description

      When trying to cross-compile for an embedded Linux system that does not support shared libraries fails (i.e. FLAT/nommu):

      the mkspecs/linux-g++/qplatformdefs.h header needlessly includes dlfcn.h. any place in the QT code that actually uses dlopen/etc... type functions already have logic/includes in place. globally including this header is pointless.

      — a/mkspecs/linux-g++/qplatformdefs.h
      +++ b/mkspecs/linux-g++/qplatformdefs.h
      @@ -63,7 +63,6 @@
      #include <grp.h>
      #include <pwd.h>
      #include <signal.h>
      -#include <dlfcn.h>

      #include <sys/types.h>
      #include <sys/ioctl.h>

      Attachments

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

        Activity

          People

            tmacieir Thiago Macieira (closed Nokia identity) (Inactive)
            janichol Andy Nichols
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes