summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-11-07 21:23:03 (GMT)
committerTaylor Blau <me@ttaylorr.com>2022-11-08 03:11:51 (GMT)
commite47913e8e29fdeaa26ccdf2626894da5283d9bd8 (patch)
treed5e8d18a60f5a9cd9c3392a65885e1da689ffde5 /Makefile
parent3b08839926fcc7cc48cf4c759737c1a71af430c1 (diff)
downloadgit-e47913e8e29fdeaa26ccdf2626894da5283d9bd8.zip
git-e47913e8e29fdeaa26ccdf2626894da5283d9bd8.tar.gz
git-e47913e8e29fdeaa26ccdf2626894da5283d9bd8.tar.bz2
Makefile: always (re)set DC_SHA1 on fallback
Fix an edge case introduced in in e6b07da2780 (Makefile: make DC_SHA1 the default, 2017-03-17), when DC_SHA1 was made the default fallback we started unconditionally adding to BASIC_CFLAGS and LIB_OBJS, so we'd use the sha1collisiondetection by default. But the "DC_SHA1" variable remained unset, so e.g.: make test DC_SHA1= T=t0013*.sh Would skip the sha1collisiondetection tests, as we'd write "DC_SHA1=''" to "GIT-BUILD-OPTIONS", but if we manually removed that test prerequisite we'd pass the test (which we couldn't if we weren't using sha1collisiondetection). So let's have the fallback assignment use the 'override' directive instead of the ":=" simply expanded variable introduced in e6b07da2780. In this case we explicitly want to override the user's choice. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4927379..0ad9a6c 100644
--- a/Makefile
+++ b/Makefile
@@ -1826,7 +1826,7 @@ ifdef APPLE_COMMON_CRYPTO
COMPAT_CFLAGS += -DCOMMON_DIGEST_FOR_OPENSSL
BASIC_CFLAGS += -DSHA1_APPLE
else
- DC_SHA1 := YesPlease
+ override DC_SHA1 = YesPlease
BASIC_CFLAGS += -DSHA1_DC
LIB_OBJS += sha1dc_git.o
ifdef DC_SHA1_EXTERNAL