# Dependency handling regression in 5.8 when linking third-party static libraries 

**URL:** <https://forums.unrealengine.com/t/dependency-handling-regression-in-5-8-when-linking-third-party-static-libraries/2836500>\
**Category:** Pipeline & Plugins\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [September 2, 2026, 3:36pm UTC](https://forums.unrealengine.com/t/dependency-handling-regression-in-5-8-when-linking-third-party-static-libraries/2836500 "2026-09-02T15:36:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 2, 2026, 3:36pm UTC](https://forums.unrealengine.com/t/dependency-handling-regression-in-5-8-when-linking-third-party-static-libraries/2836500/1 "2026-09-02T15:36:13Z")

</div>

In 5.8, changes to third-party static libraries do not always trigger a rebuild of libraries that depend on them.

This seems to be due to commit 24dccd7470bb (changelist 45674266). `ActionGraph.IsImportLibraryDependency(LinkedAction, FileItem)` always returns `true` whenever the prerequisite is a library file and the link action has _any_ prerequisite action producing an import library. Because that is the normal case for every module in an editor build, UBT skips the timestamp check for **all** `.lib` prerequisites. A third-party static library that is rebuilt out-of-band never triggers a relink.

FTR, I also posted here: [Dependency handling regression in 5.8 when linking third-party static libraries - General / Issues and Bug Reporting (Unreal Engine) - Epic Developer Community Forums](https://forums.unrealengine.com/t/dependency-handling-regression-in-5-8-when-linking-third-party-static-libraries/2747115)

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 2, 2026, 3:36pm UTC](https://forums.unrealengine.com/t/dependency-handling-regression-in-5-8-when-linking-third-party-static-libraries/2836500/2 "2026-09-02T15:36:16Z")

</div>

**Steps to Reproduce**  
**Steps to Reproduce**

1. Build UnrealEditor
2. Touch Engine/Source/ThirdParty/zlib/1.3/lib/Win64/Release/zlibstatic.lib
3. Build again

**Expected Result**

The second build should relink a number of modules including UnrealEditor-Core.dll.

**Observed Result**

The build doesn’t do any significant work.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Svegn2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svegn2/32/1225280_2.png) [@Svegn2](https://forums.unrealengine.com/u/Svegn2)\
**Post date:** [September 2, 2026, 8:40pm UTC](https://forums.unrealengine.com/t/dependency-handling-regression-in-5-8-when-linking-third-party-static-libraries/2836500/3 "2026-09-02T20:40:17Z")

</div>

Hello!

I ran some tests and you found the source of the problem. FirstOrDefault is not the same as Contains and will always return a non-null item that way it’s written.

I’ll work with the engine team to get this addressed in a future release. You can use the old version of the code for now.

Thanks for the report!

Martin

[Attachment Removed]
