[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pkg-config, anyone?
From: |
Braden McDaniel |
Subject: |
Re: pkg-config, anyone? |
Date: |
Fri, 10 Oct 2008 15:18:31 -0400 |
On Oct 10, 2008, at 2:28 PM, Matěj Týč wrote:
Hello friends,
I would like to inquire whether there is someone here that
generates .pc
files in his autotools-powered project (presumably a project
containing
libraries).
The most common way to do it is to process the file with configure/
config.status to make any useful substitutions.
I am particulary searching for a manner how to specify the library
name
in a smart way since libtool can be very creative when decorating the
library name (if you use the -version-number etc. options).
You don't use that information when linking with the library, typically.
Imagine that you would like a library to have different name on each
platform and you would also like to generate and install a .pc file
for
every one of those platforms. Obviously it would be very helpful if it
was possible using the same .pc.in template.
I have found this guide (http://tinyurl.com/4jkjsb) , but the library
name is specified by hand, which is not auto, right? :-)
Regards,
Matej
The version numbers you see in that example are not libtool library
version numbers; rather, they are simply part of the library name.
Giving your library a different name on every platform is a bit
unusual; but you should be able to accomplish it with configure
substitutions.
Braden