[CDRIVER-3339] Hardcoded libdir in src/libmongoc/CMakeLists.txt Created: 26/Aug/19 Updated: 28/Oct/23 Resolved: 27/Aug/19 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | Build, cmake, packaging |
| Affects Version/s: | None |
| Fix Version/s: | 1.16.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Vasil Velichkov | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Fedora 29 |
||
| Description |
|
The libdir variable is hardcoded in src/libmongoc/CMakeLists.txt and cannot be change using cmake parameter, it is used in the *.pc.in files and as a result on distributions that have different libdir for 64bit like Redhat/Fedora/... pkg-config add a wrong library directory to LDFLAGS. $ rpm -q mongo-c-driver-devel $ rpm -ql mongo-c-driver-develĀ | grep libmongoc-1.0.so $ pkg-config --libs libmongoc-1.0 $ pkg-config --libs libmongoc-ssl-1.0 |
| Comments |
| Comment by Githook User [ 27/Aug/19 ] |
|
Author: {'name': 'Vasil Velichkov', 'email': 'vvvelichkov@gmail.com', 'username': 'velichkov'}Message: The libdir was hardcoded to ${prefix}/lib and as a result on |
| Comment by Vasil Velichkov [ 26/Aug/19 ] |
|
Just pushed a patch to https://github.com/mongodb/mongo-c-driver/pull/585 |