|
From: | Ralf Corsepius |
Subject: | Re: How to install library in a specify directory? |
Date: | Wed, 05 Jan 2011 08:15:20 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7 |
On 01/05/2011 08:08 AM, Lyre wrote:
For example, I'm writing a lib named mylib. The library contain a .pc file: instdir = ${libdir}/pkgconfig inst_DATA = mylib.pc And I want that *.so goes in /usr/lib/mylib/ and *.pc goes in /usr/lib/pkgconfig/ ./configure --libdir=/usr/lib/mylib will install *.so into correct direcotry, however *.pc will goes in /usr/lib/mylib/pkgconfig. set instdir = ${libdir}/../pkgconfig seems to works, but it looks quite strange, Is there a better solution?
One possiblity (presuming you to be using libtool to create the shared library):
pkgconfigdir = ${libdir}/pkgconfig pkgconfig_DATA = mylib.pc mylibdir = ${libdir}/mylib mylib_LTLIBRARIES = libmylib.la Ralf
[Prev in Thread] | Current Thread | [Next in Thread] |