Skip to content

Commit 143a96a

Browse files
incertumetcwilde
andcommitted
[static-linux-sdk] Update "Getting Started with the Static Linux SDK"
Add a comment contrasting the Linux SDK with Apple platforms. Co-authored-by: Evan Wilde <[email protected]> Signed-off-by: Melissa Kilby <[email protected]>
1 parent 3eef2a6 commit 143a96a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

documentation/articles/static-linux-getting-started.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: page
33
date: 2024-06-04 12:00:00
44
title: Getting Started with the Static Linux SDK
5-
author: [al45tair, incertum]
5+
author: [al45tair, incertum, etcwilde]
66
---
77

88
It's well known that Swift can be used to build software for Apple
@@ -40,6 +40,14 @@ you can develop and test your program on macOS before building and
4040
deploying it to a Linux-based server, whether running locally or
4141
somewhere in the cloud.
4242

43+
Finally, for those wondering about an equivalent for Apple platforms,
44+
no such static SDK exists. Building a fully static executable is not
45+
possible on Apple's operating systems because, unlike Linux, the
46+
Darwin kernel's system call table is not part of the ABI. This design
47+
requires all system calls to be routed through the dynamic library
48+
`libsystem.dylib`, fundamentally preventing a 100% statically linked
49+
binary.
50+
4351
### Static vs Dynamic Linking
4452

4553
_Linking_ is the process of taking different pieces of a computer

0 commit comments

Comments
 (0)