is it just me or is amost everything staticly linked.

Place to post guides, observations, things related to modding that are not mods themselves.
ilikehackinggames
Inserter
Inserter
Posts: 36
Joined: Thu Apr 24, 2025 11:51 pm
Contact:

is it just me or is amost everything staticly linked.

Post 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?
Jap2.0
Smart Inserter
Smart Inserter
Posts: 2538
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: is it just me or is amost everything staticly linked.

Post by Jap2.0 »

To my knowledge: yes and no, respectively.
There are 10 types of people: those who get this joke and those who don't.
ilikehackinggames
Inserter
Inserter
Posts: 36
Joined: Thu Apr 24, 2025 11:51 pm
Contact:

Re: is it just me or is amost everything staticly linked.

Post by ilikehackinggames »

even stuff like glibc?
ilikehackinggames
Inserter
Inserter
Posts: 36
Joined: Thu Apr 24, 2025 11:51 pm
Contact:

Re: is it just me or is amost everything staticly linked.

Post by ilikehackinggames »

and whats the benifit of staticly linking i dont get it?
eugenekay
Filter Inserter
Filter Inserter
Posts: 619
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: is it just me or is amost everything staticly linked.

Post 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.
Jap2.0
Smart Inserter
Smart Inserter
Posts: 2538
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: is it just me or is amost everything staticly linked.

Post 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.
There are 10 types of people: those who get this joke and those who don't.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15985
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: is it just me or is amost everything staticly linked.

Post 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.
If you want to get ahold of me I'm almost always on Discord.
ilikehackinggames
Inserter
Inserter
Posts: 36
Joined: Thu Apr 24, 2025 11:51 pm
Contact:

Re: is it just me or is amost everything staticly linked.

Post 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!
ilikehackinggames
Inserter
Inserter
Posts: 36
Joined: Thu Apr 24, 2025 11:51 pm
Contact:

Re: is it just me or is amost everything staticly linked.

Post by ilikehackinggames »

what librarys and versons of them do you use?
Post Reply

Return to “Modding discussion”