threads / discuss / 4882

disable the compile-flags-changed check

Subject: disable the compile-flags-changed check

## tl;dr

4 messages between Jul 14, 2006 and Jul 15, 2006.

replies: 3people: 2as markdown or json

Matthias Lederhofer· Jul 14, 2006, 05:47 UTC · lore

Is there any way to disable the "the compile flags have changed, recompile everything" check? I want to built with another prefix than installing to create a tarball I copy to other machines. Is there any way to do this? Otherwise: could we include something like this?

ifeq ($(IGNORE_CFLAG_CHANGES),)
# old GIT-CFLAGS rules
else
GIT-CFLAGS:
        touch "$@"
endif
Junio C Hamano· Jul 14, 2006, 06:06 UTC · re: Matthias Lederhofer · lore

Re: disable the compile-flags-changed check

Matthias Lederhofer <matled@gmx.net> writes:
> Is there any way to disable the "the compile flags have changed,
> recompile everything" check?  I want to built with another prefix than
> installing to create a tarball I copy to other machines.  Is there any
> way to do this?
Perhaps
	DESTDIR=/var/tmp/ make prefix=/usr install
is what you are looking for?
Matthias Lederhofer· Jul 15, 2006, 19:51 UTC · re: Junio C Hamano · lore

Re: disable the compile-flags-changed check

Junio C Hamano <junkio@cox.net> wrote:
Show 12 quoted lines
> Matthias Lederhofer <matled@gmx.net> writes:
> 
> > Is there any way to disable the "the compile flags have changed,
> > recompile everything" check?  I want to built with another prefix than
> > installing to create a tarball I copy to other machines.  Is there any
> > way to do this?
> 
> Perhaps
> 
> 	DESTDIR=/var/tmp/ make prefix=/usr install
> 
> is what you are looking for?
Thanks, this works.
Junio C Hamano· Jul 15, 2006, 21:48 UTC · re: Matthias Lederhofer · lore

Re: disable the compile-flags-changed check

Matthias Lederhofer <matled@gmx.net> writes:
Show 15 quoted lines
> Junio C Hamano <junkio@cox.net> wrote:
>> Matthias Lederhofer <matled@gmx.net> writes:
>> 
>> > Is there any way to disable the "the compile flags have changed,
>> > recompile everything" check?  I want to built with another prefix than
>> > installing to create a tarball I copy to other machines.  Is there any
>> > way to do this?
>> 
>> Perhaps
>> 
>> 	DESTDIR=/var/tmp/ make prefix=/usr install
>> 
>> is what you are looking for?
>
> Thanks, this works.

By the way, in older days before binary distributions have become _the_ way for the end users to get programs, "install into a saparate place for tarring up" needed to be custom job per package, because Makefiles of many packages were not set up to easily allow it (like DESTDIR= stuff). These days, allowing it is almost a requirement in order to make binary distros' lives easier, so if a program is packaged for some binary distros (say, RPM or deb), often the easiest way to figure out the answer to your question is to see how they build their packages out of the source.

← back to recent threads