bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sources target and pc-files


From: Thomas Dickey
Subject: Re: sources target and pc-files
Date: Tue, 22 Nov 2011 11:36:41 -0500
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Nov 22, 2011 at 11:16:46AM -0500, Mike Frysinger wrote:
> the misc/Makefile.in has sources depend on pc-files.  i can't see why this 
> would 
> be needed.  could you clarify ?
> 
> the issue is that if you run:
>       ./configure --enable-pc-files
>       make sources
>       make
>       make install
> you get a build failure due to no .pc files being in misc/
> 
> this is because the misc/gen-pkgconfig script is run when processing the pc-
> files target, and it only generates .pc files for libraries that have been 
> compiled in ../lib/*.  since we haven't compiled anything yet, there is 
> nothing in ../lib/, so no .pc files are created, and then the Makefile does 
> "touch pc-files" to prevent running it again.
> 
> possible solutions:
>  - don't have "sources" depend on "pc-files" (i don't see why it does now)
>       - con: .pc files still don't get regenerated when $version or libs 
> change
>  - don't have the pc-files target `touch address@hidden
>       - con: .pc files will always get refreshed (but maybe that's fine)
>               - easy enough to add a `cmp` to the gen-pkgconfig to avoid this
> 
> i'm leaning towards the latter solution ...

something like that, I guess.  A third solution would be to
make gen-pkgconfig smart enough to generate the right text without
looking in ../lib/* (perhaps more work than I intended).

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]