Workaround for missing -l option in libraries
envgap__abseil__abseil-cpp-1164
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
5fa65f28e46e86c44966a1ca8a727a329d9c1ff8- Manifest
absl/base/CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
abseil/abseil-cpp #1164 · read the original issue
Hi,
Package config files generated by grpc does not include -l option for these libraries `advapi32`, `dbghelp` and `bcrypt`. Currently grpc generates these library names within quotes `""` rather than with a `-l` option. Which makes linking to these libraries errorneous.
I tried to look for underlying issue. And I think the issue is probably with this `$<JOIN:${ABSL_CC_LIB_LINKOPTS}, >` here [grpc-1.45.2/third_party/abseil-cpp/CMAKE/AbseilHelpers.cmake](https://github.com/abseil/abseil-cpp/blob/215105818dfde3174fe799600bb0f3cae233d0bf/CMake/AbseilHelpers.cmake#L182).
And the affected pkgconfig files are the only ones which adds libraries using `${ABSL_CC_LIB_LINKOPTS}` that too within quotes `""` as opposed to followed by `-l` option. Just for records the effected files are `absl_base.pc`, `absl_symbolize.pc` and recently added `absl_random_internal_seed_material.pc` with `"advapi32"`, `"dbghelp"` and `"bcrypt"` libraries respectively.
Can you please give a workaround for this or a correct way to use .pc files which does not include -l option with the mentioned libraries?04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]