This commit is contained in:
parent
7f73104db9
commit
8603182caf
2 changed files with 19 additions and 0 deletions
|
|
@ -134,6 +134,13 @@ extern "C" Configuration CrafterBuildProject(std::span<const std::string_view> a
|
|||
cfg.linkFlags.push_back("-lssl");
|
||||
cfg.linkFlags.push_back("-lcrypto");
|
||||
|
||||
// libmsquic.so.2 is built in crafter-build's external cache, and the
|
||||
// RUNPATH pointing there only exists on the build machine — the first
|
||||
// deploy to a real host died in the loader (exit 127) because of it.
|
||||
// $ORIGIN makes the loader also look next to the binary itself, and CI
|
||||
// ships the .so alongside it into /srv/catcrafts-app.
|
||||
cfg.linkFlags.push_back("-Wl,-rpath,$ORIGIN");
|
||||
|
||||
ApplyReleaseTrimming(cfg);
|
||||
return cfg;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue