Linking against libbenchmark_main fails
Bug #1887872 reported by
Scott K Logan
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
benchmark (Debian) |
Fix Released
|
Unknown
|
|||
benchmark (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
There appears to be a packaging patch that makes libbenchmark a shared library, but that patch doesn't also make libbenchmark_main a shared library. Trying to link against libbenchmark_main.a to use it as it is intended results in a link error:
/usr/bin/ld: /usr/lib/
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status
A simple solution would be to extend the patch to make libbenchmark_main a shared object library as well, or alternatively use the CMake argument -DBUILD_
Changed in benchmark (Debian): | |
status: | Unknown → Fix Released |
To post a comment you must log in.
Status changed to 'Confirmed' because the bug affects multiple users.