Is it possible to build GDExtension with the engine rather than as a dll?

Godot Version

4.4-stable

Question

For a release build of my game, I was wondering if it was possible to compile my GDExtension code with the Godot engine rather than as a dynamically linked library. Searching online, people suggest refactoring the code as a custom module. I was wondering if there was a simpler way to do it, like by editing the SConstruct file.

There are differences, you can look at the steam extension by gramps as from memory they have both, GitHub - GodotSteam/GodotSteam: An ecosystem of tools for Godot Engine and Valve's Steam. For Linux, Mac, and Windows.