Link error caused by incorrect 'Libs' entry in mlpack.pc file
envgap__mlpack__mlpack-2097
01 / FAILURE SIGNATURE
As reported upstream
The `Libs` entry of mlpack.pc seems to be incorrect, which causes the link error.
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
1cd46862138b71a0f63428962b33ce6abfd2bef7- Manifest
CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
mlpack/mlpack #2097 · read the original issue
<!--
Welcome! Please fill out the template below; that makes it easier for us to
quickly figure out what the issue is and solve it. Thanks!
-->
#### Issue description
<!-- Describe your issue here. -->
The `Libs` entry of mlpack.pc seems to be incorrect, which causes the link error.
#### Your environment
* version of mlpack: 3.2.2
* operating system:macOS 10.14.6
* compiler:clang++
* version of dependencies (Boost/Armadillo):Boost 1.71, Armadillo 9.800
* any other environment information you think is relevant:
clang version 9.0.0 (tags/RELEASE_900/final)
Target: x86_64-apple-darwin18.7.0
#### Steps to reproduce
<!-- Tell us how to reproduce the issue; please provide a working example if
possible! -->
Compile the following gist ( compile command is located at the first line )
[test.cpp](https://gist.github.com/tomjpsun/276b6c44046154c7ff11eb17b4c7dded)
#### Expected behavior
<!-- Tell us what should happen. -->
Normally, the sample code should be built without problem.
#### Actual behavior
<!-- Tell us what happened instead. -->
We get the build error message:
ld: library not found for -l/usr/local/lib/libarmadillo.dylib04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]