From 60d7d9ec1e0a1f9b7c8311a94b32d550f9a979b7 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 4 Nov 2024 11:57:02 +0100 Subject: [PATCH] makepanda: Re-link executables with --static if dependency changed --- makepanda/makepandacore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index 5987a3841f..7b7c4e248a 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -3677,7 +3677,7 @@ def TargetAdd(target, dummy=0, opts=[], input=[], dep=[], ipath=None, winrc=None t.inputs.append(fullinput) # Don't re-link a library or binary if just its dependency dlls have been altered. # This should work out fine in most cases, and often reduces recompilation time. - if os.path.splitext(x)[-1] not in SUFFIX_DLL: + if os.path.splitext(x)[-1] not in SUFFIX_DLL or (GetLinkAllStatic() and target.endswith(".exe")): t.deps[fullinput] = 1 (base,suffix) = os.path.splitext(x) if SUFFIX_INC.count(suffix):