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

Dynamic c++ libraries with '/' in name mess up linking

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 1.4.0
    • 1.2.1
    • General
    • None
    • 81500ce1be3506ce0a888699f64df7487f0ca0a6 353aeb8a6df5c1c8044722ff19536f62e0babf06

    Description

      Declaring a DynamicLibrary with Depends

      {name: "cpp"}

      and name: "something/with/slashs" and let another product depend on it confused the linking parameters.

      Example:

      /usr/bin/clang++ -m64 -g -Wall -Wextra -shared -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-soname=sql.so -v /home/ablu/mana/manaserv-build/qtc_Desktop-debug/.obj/mana/persitence/sql/SqlStorage.cpp.o -o /home/ablu/mana/manaserv-build/qtc_Desktop-debug/libmana/persitence/sql.so -Wl,-rpath,$ORIGIN,-rpath,/usr/lib64 -L/usr/lib64 -l/home/ablu/mana/manaserv-build/qtc_Desktop-debug/.socopy/libmana/entities.so -lQt5Core -lQt5Sql -Wl,--unresolved-symbols=ignore-in-shared-libs
      

      The -l/path/to/lib is not working.

      I am not sure whether slashes in names are a supported use case. But maybe it would make sense to sanitize the names before using them. (or at least refuse to work with them).

      Attachments

        For Gerrit Dashboard: QBS-637
        # Subject Branch Project Status CR V

        Activity

          People

            jbornema Joerg Bornemann
            ablu Erik Schilling
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes