automake
[Top][All Lists]
Advanced

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

Re: Any way to get rid of -MP parameter to gcc for dependency creation?


From: Xan Lopez
Subject: Re: Any way to get rid of -MP parameter to gcc for dependency creation?
Date: Tue, 4 Jan 2011 00:54:40 +0100

On Tue, Jan 4, 2011 at 12:46 AM, Eric Blake <address@hidden> wrote:
> On 01/03/2011 04:43 PM, Xan Lopez wrote:
>> Alternatively, is there some well-known way to reduce either the size
>> or the processing time for the Makefile in huge automake projects?[1]
>
> Have you tried './configure --disable-dependency-tracking' as a way to
> make automake quit outputting -MP options in the makefile?  Since you're
> already willing to give up the benefits of dependency tracking, you
> might as well tell that to configure.

I'm only interested in getting rid of the -MP flag, not all -M flags.
It does, according to the doc:

-MP
This option instructs CPP to add a phony target for each dependency
other than the main file, causing each to depend on nothing. These
dummy rules work around errors make gives if you remove header files
without updating the Makefile to match.

I understand this can cause problems if, say, a file is removed from
the build tree or so, but it's very different to removing completely
dependency tracking (which indeed makes the null-build be essentially
0s).

Xan

>
> --
> Eric Blake   address@hidden    +1-801-349-2682
> Libvirt virtualization library http://libvirt.org
>
>



reply via email to

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