Page 1 of 1
is it just me or is amost everything staticly linked.
Posted: Tue Aug 12, 2025 2:29 am
by ilikehackinggames
aside from steam api in the steam verson it seems like at least on windows everything is staticly linked. is that correct and is it difrent with linux?
Re: is it just me or is amost everything staticly linked.
Posted: Tue Aug 12, 2025 2:35 am
by Jap2.0
To my knowledge: yes and no, respectively.
Re: is it just me or is amost everything staticly linked.
Posted: Tue Aug 12, 2025 6:05 pm
by ilikehackinggames
even stuff like glibc?
Re: is it just me or is amost everything staticly linked.
Posted: Tue Aug 12, 2025 6:15 pm
by ilikehackinggames
and whats the benifit of staticly linking i dont get it?
Re: is it just me or is amost everything staticly linked.
Posted: Tue Aug 12, 2025 6:52 pm
by eugenekay
Factorio’s game Sandbox is required to get the same results on all Instances - else a Desync occurs due to cross-platform differences. So bringing all the Libraries in at Compile time eliminates an entire class of issues - it is always the same Assembly emitted for Math functions.
Re: is it just me or is amost everything staticly linked.
Posted: Tue Aug 12, 2025 7:03 pm
by Jap2.0
Not sure re: glibc, but the point is generally better performance (LTO) and compatibility.
You could glean most of these by searching the forum—try terms like "glibc", "static link linux", etc.
Re: is it just me or is amost everything staticly linked.
Posted: Tue Aug 12, 2025 10:09 pm
by Rseding91
We static link everything we can as far as I know. We would static link the c runtime library on Linux and Mac if it supported it without a ton of work.
Re: is it just me or is amost everything staticly linked.
Posted: Wed Aug 13, 2025 2:46 am
by ilikehackinggames
eugenekay wrote: Tue Aug 12, 2025 6:52 pm
Factorio’s game Sandbox is required to get the same results on all Instances - else a Desync occurs due to cross-platform differences. So bringing all the Libraries in at Compile time eliminates an entire class of issues - it is always the same Assembly emitted for Math functions.
that makes sence. thanks!
Re: is it just me or is amost everything staticly linked.
Posted: Wed Aug 13, 2025 2:49 am
by ilikehackinggames
what librarys and versons of them do you use?