diff --git a/src/linker.cpp b/src/linker.cpp index cc70849f7..0d8fa79e0 100644 --- a/src/linker.cpp +++ b/src/linker.cpp @@ -789,12 +789,12 @@ try_cross_linking:; // by the compiler frontend are still needed and most of the command // line arguments prepared previously are incompatible with ld. if (build_context.metrics.os == TargetOs_darwin) { - link_settings = gb_string_appendc(link_settings, "-Wl,-init,'__odin_entry_point' "); + link_settings = gb_string_appendc(link_settings, "-Wl,-init,__odin_entry_point "); // NOTE(weshardee): __odin_exit_point should also be added, but -fini // does not exist on MacOS } else { - link_settings = gb_string_appendc(link_settings, "-Wl,-init,'_odin_entry_point' "); - link_settings = gb_string_appendc(link_settings, "-Wl,-fini,'_odin_exit_point' "); + link_settings = gb_string_appendc(link_settings, "-Wl,-init,_odin_entry_point "); + link_settings = gb_string_appendc(link_settings, "-Wl,-fini,_odin_exit_point "); } } else if (is_android) { // Always shared even in android!