Details
-
Bug
-
Resolution: Done
-
P2: Important
-
1.13.0, 1.12.2
-
None
-
-
bd1fbf43096d372a671d10bfe3b9fb227104bdde (qbs/qbs/1.13)
Description
When linking application with Android.ndk.appStl: "c+_static" i have many "undefined reference" errors for libc+_static.a library (log is in attachment).
Seems like those symbols are located in ndk-bundle/sources/cxx-stl/llvm-libc+/libs/arm64-v8a/libc+abi.a.
But I can not link it from my application code because qbs orders libraries in wrong way in this case, and error does not go away.
as a quick fix I have patched android-gcc.qbs file like this
staticLibraries: { var libs = ["gcc"]; if (staticStlFilePath) //libs.push(staticStlFilePath); libs.push(staticStlFilePath, FileInfo.joinPaths(stlLibsDir, staticLibraryPrefix + "c++abi" + staticLibrarySuffix)); return libs; }
with such fix it links successfully.
Attachments
For Gerrit Dashboard: QBS-1423 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
253142,3 | Android: Fix libc++abi issues | 1.13 | qbs/qbs | Status: MERGED | +2 | 0 |