Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1835

qbs doesn't allow to apply version-script on applications

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 2.5.1
    • None
    • Linux/Wayland, Linux/X11

    Description

      HI! I had an application which linked with a lot of static libraries, but I was surprised to know that this symbols could be overrided (using LD_PRELOAD) if compile app without cpp.visibility: "minimal" and  cpp.linkerFlags.base.concat("--exclude-libs", "ALL"): You can read more about it there: https://stackoverflow.com/questions/3765669/stdbad-cast-crash-seems-to-be-linked-to-boost-regex

       

      I also tried to hide them using version-script, but was surprised that qbs doesn't pass it for applications If pass it that way:

      Group {
          files: "main.map"
          fileTags: "versionscript"
      }

       

      But, If pass it explicitly – everything is work:

      cpp.linkerFlags: base.concat("--version-script=" +FileInfo.joinPaths(product.sourceDirectory, "main.map"))

      main.map:

      {
        local: *;
      };

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            lo1ol Petr Mikhalitsyn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes