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

Gcc.concatLibs(libs, deplibs) should preserve 'deplibs' order

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 1.2.0
    • 1.2.0
    • General
    • None
    • Kubuntu 13.10, clang version 3.4-1ubuntu1 (trunk) (based on LLVM 3.4)
    • ae6392f90d7a1de97262d934e0150cc53ea32451

    Description

      Currently Gcc.concatLibs appends libraries in reverse order.

      ERROR: /usr/bin/clang++ -m64 -O2 -Wall -Wextra /home/a-baskanov/src/dep2/qtc_Desktop-release/.obj/main/main.cpp.o -o /home/a-baskanov/src/dep2/qtc_Desktop-release/main -Wl,-rpath,$ORIGIN /home/a-baskanov/src/dep2/qtc_Desktop-release/libe.a /home/a-baskanov/src/dep2/qtc_Desktop-release/libd.a /home/a-baskanov/src/dep2/qtc_Desktop-release/liba.a /home/a-baskanov/src/dep2/qtc_Desktop-release/libb.a /home/a-baskanov/src/dep2/qtc_Desktop-release/libc.a -Wl,--unresolved-symbols=ignore-in-shared-libs
      /home/a-baskanov/src/dep2/qtc_Desktop-release/libb.a(b.cpp.o): In function `b()':
      /home/a-baskanov/src/dep2/b.cpp:(.text+0x1): undefined reference to `a1()'
      /home/a-baskanov/src/dep2/qtc_Desktop-release/libc.a(c.cpp.o): In function `c()':
      /home/a-baskanov/src/dep2/c.cpp:(.text+0x1): undefined reference to `a2()'
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            baskanov Anton Baskanov
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes