aboutsummaryrefslogtreecommitdiff
path: root/src/linker.cpp
diff options
context:
space:
mode:
authorFrancisTheCat <90558133+FrancisTheCat@users.noreply.github.com>2024-03-27 16:43:02 +0100
committerGitHub <noreply@github.com>2024-03-27 16:43:02 +0100
commit29e4e851521ed9cbf3d3403662766d1e9877c1ba (patch)
treeff48666c51536af80d7185f14e711eb211982ce9 /src/linker.cpp
parenta422aba5786080c9f176cfb0255f81d987b10a08 (diff)
parent7b387fd3aa9b943929dcb73f669d8151837f0a24 (diff)
Merge branch 'odin-lang:master' into master
Diffstat (limited to 'src/linker.cpp')
-rw-r--r--src/linker.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/linker.cpp b/src/linker.cpp
index 63987f9e8..0e3169b22 100644
--- a/src/linker.cpp
+++ b/src/linker.cpp
@@ -508,8 +508,10 @@ gb_internal i32 linker_stage(LinkerData *gen) {
link_settings = gb_string_append_fmt(link_settings, "-mmacosx-version-min=%.*s ", LIT(build_context.minimum_os_version_string));
}
- // This points the linker to where the entry point is
- link_settings = gb_string_appendc(link_settings, "-e _main ");
+ if (build_context.build_mode != BuildMode_DynamicLibrary) {
+ // This points the linker to where the entry point is
+ link_settings = gb_string_appendc(link_settings, "-e _main ");
+ }
}
if (!build_context.no_crt) {