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

QMake build with no_plugin_name_prefix does not work with separate_debug_info

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.1
    • 5.5.0
    • Build System
    • None
    • Linux (Centos7, 64-bit), Qt-commercial 5.5.0
    • 540681749388e9b2ca775914faed27b936776978

    Description

      I try to build a ".so" plugin without the "lib" prefix, and separate debug info, so I build with something like:

      TEMPLATE=lib
      TARGET=CtrlLDAP
      CONFIG += no_plugin_name_prefix separate_debug_info
      

      I get an error when the target .so is being stripped, because the subject for it still contains the "lib" prefix. This bug is very similar to QTBUG-47065 - the fix therein is actually not sufficient:
      https://codereview.qt-project.org/#/c/120841/

      The actual code in resolve_target.prf should be something like

      58: } else: plugin|unversioned_libname|no_plugin_name_prefix {	
      59:  QMAKE_RESOLVED_TARGET = $${QMAKE_RESOLVED_TARGET}$${TARGET}.so
      

      or, to be explicit:
      1) the else statement in line 58 should also take into account the "no_plugin_name_prefix" config option
      2) line 59 should actuall set name without the $${LIBPREFIX}

      Attachments

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

        Activity

          People

            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            piters Piotr Golonka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes