Project

General

Profile

Actions

Tasks #2789

open

pkgconfig files for libraries

Added by Wido den Hollander almost 12 years ago. Updated almost 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
librados
Target version:
-
% Done:

0%

Spent time:
Tags:
Reviewed:
Affected Versions:
Pull request ID:

Description

From the libvirt mailinglist I got the message that they'd like to see pkg-config for at least librbd and librados.

It shouldn't be that hard to generate these I think?

It requires a version thought, so we need to put a version in there for librados. Extract from the header file?


Files

0001-Generate-pkg-config-files.patch (3.93 KB) 0001-Generate-pkg-config-files.patch Wido den Hollander, 07/19/2012 05:09 AM
Actions #1

Updated by Sage Weil almost 12 years ago

There is a librados-config in librados-dev. Does that mean we just need a librbd-config too?

Actions #2

Updated by Wido den Hollander almost 12 years ago

No, I'm talking about: http://en.wikipedia.org/wiki/Pkg-config

I added a patch which adds these files, but I'm not that good with Makefiles, so that is still lacking.

The files should end up in $prefix/lib/pkgconfig, user could then do:

root@amd:~# pkg-config --libs librados
-lrados -lcrypto  
root@amd:~# pkg-config --libs librbd
-lrbd -lrados -lcrypto  
root@amd:~# pkg-config --libs libcephfs
-lcephfs  
root@amd:~#

Or something like:

gcc -o testrados testrados.cpp $(pkg-config --libs librados)

These files should work, they should just end up in the -dev packages for Debian and the -devel packages for RHEL.

Actions

Also available in: Atom PDF