Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 23 lines 1.0 kB view raw
1diff --git a/src/linker.cpp b/src/linker.cpp 2index 2210c13..803b654 100644 3--- a/src/linker.cpp 4+++ b/src/linker.cpp 5@@ -779,18 +779,6 @@ try_cross_linking:; 6 } 7 platform_lib_str = gb_string_append_fmt(platform_lib_str, "--sysroot %s ", darwin_sdk_path); 8 9- platform_lib_str = gb_string_appendc(platform_lib_str, "-L/usr/local/lib "); 10- 11- // Homebrew's default library path, checking if it exists to avoid linking warnings. 12- if (gb_file_exists("/opt/homebrew/lib")) { 13- platform_lib_str = gb_string_appendc(platform_lib_str, "-L/opt/homebrew/lib "); 14- } 15- 16- // MacPort's default library path, checking if it exists to avoid linking warnings. 17- if (gb_file_exists("/opt/local/lib")) { 18- platform_lib_str = gb_string_appendc(platform_lib_str, "-L/opt/local/lib "); 19- } 20- 21 // Only specify this flag if the user has given a minimum version to target. 22 // This will cause warnings to show up for mismatched libraries. 23 if (build_context.minimum_os_version_string_given) {