Code

Makefile: Track changes to LDFLAGS and relink when necessary
authorFredrik Kuivinen <frekui@gmail.com>
Wed, 22 Jun 2011 10:50:56 +0000 (12:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Jun 2011 18:56:53 +0000 (11:56 -0700)
commitd9a25fca5fc01ab4e2e114795c442906bc67de26
tree7d705f4a5b3e91539435e645832b3b5ce420b144
parent2765233c64c35eb43a8b46c377fb8b464469221f
Makefile: Track changes to LDFLAGS and relink when necessary

Some profiling tools (e.g., google-perftools and mutrace) work by
linking in a new library into the executables. When using these tools
it is convenient to only relink instead of doing a full make clean;
make cycle.

This change complements the auto-detection of changes to CFLAGS that
we already have. Tracking of more variables that affect the build can
be added when the need arise.

Signed-off-by: Fredrik Kuivinen <frekui@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitignore
Makefile