mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Merge pull request #5190 from Feoramund/fix-freebsd-3rd-linking
Add `/usr/local/lib` to FreeBSD linker path
This commit is contained in:
@@ -801,6 +801,9 @@ try_cross_linking:;
|
|||||||
// This points the linker to where the entry point is
|
// This points the linker to where the entry point is
|
||||||
link_settings = gb_string_appendc(link_settings, "-e _main ");
|
link_settings = gb_string_appendc(link_settings, "-e _main ");
|
||||||
}
|
}
|
||||||
|
} else if (build_context.metrics.os == TargetOs_freebsd) {
|
||||||
|
// FreeBSD pkg installs third-party shared libraries in /usr/local/lib.
|
||||||
|
platform_lib_str = gb_string_appendc(platform_lib_str, "-Wl,-L/usr/local/lib ");
|
||||||
} else if (build_context.metrics.os == TargetOs_openbsd) {
|
} else if (build_context.metrics.os == TargetOs_openbsd) {
|
||||||
// OpenBSD ports install shared libraries in /usr/local/lib. Also, we must explicitly link libpthread.
|
// OpenBSD ports install shared libraries in /usr/local/lib. Also, we must explicitly link libpthread.
|
||||||
platform_lib_str = gb_string_appendc(platform_lib_str, "-lpthread -Wl,-L/usr/local/lib ");
|
platform_lib_str = gb_string_appendc(platform_lib_str, "-lpthread -Wl,-L/usr/local/lib ");
|
||||||
|
|||||||
Reference in New Issue
Block a user