Details
Description
The attached project fails to build with link error:
b.cpp:(.text+0x1): undefined reference to `a1()'
The linker command line:
/usr/bin/g++ -m64 -O2 -Wall -Wextra /home/a-baskanov/src/dep/qtc_Desktop-release/.obj/main/main.cpp.o -o /home/a-baskanov/src/dep/qtc_Desktop-release/main -Wl,-rpath,$ORIGIN /home/a-baskanov/src/dep/qtc_Desktop-release/libd.a /home/a-baskanov/src/dep/qtc_Desktop-release/libc.a /home/a-baskanov/src/dep/qtc_Desktop-release/liba.a /home/a-baskanov/src/dep/qtc_Desktop-release/libb.a -Wl,--unresolved-symbols=ignore-in-shared-libs
It builds fine if I revert e679b1c6395484f145c309d64f7bb432f661aaac "fix duplicate arguments in linker command line"
Attachments
For Gerrit Dashboard: QBS-503 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
76927,3 | fix order of libraries in gcc link command line | master | qbs/qbs | Status: MERGED | +2 | 0 |