Revert "Change oniguruma link target from oniguruma to onig"

This reverts commit daa0fe00b16989cf4696c686aab33b80763834a3.
It is correct to use the pkg-config name instead of the literal dylib name
This commit is contained in:
Anthony
2024-12-12 15:35:29 +11:00
parent 4721842720
commit fb0f5519c1

View File

@ -1120,8 +1120,7 @@ fn addDeps(
});
step.root_module.addImport("oniguruma", oniguruma_dep.module("oniguruma"));
if (b.systemIntegrationOption("oniguruma", .{})) {
// Oniguruma is compiled and distributed as libonig.so
step.linkSystemLibrary2("onig", dynamic_link_opts);
step.linkSystemLibrary2("oniguruma", dynamic_link_opts);
} else {
step.linkLibrary(oniguruma_dep.artifact("oniguruma"));
try static_libs.append(oniguruma_dep.artifact("oniguruma").getEmittedBin());