diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-03-22 10:47:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-03-22 10:47:57 +0200 |
commit | 1afab626ba5cdfb16dccd9249e4223d16d131c71 (patch) | |
tree | f5e33e8c1adb2784426b62741f471721b1a80fb7 | |
parent | 66649d7b7fa3c1561dc553ad62a2b6b3164a52cf (diff) |
Don't pass config.bin.rpath in pkg-bindist if targeting Windows
-rw-r--r-- | bpkg/system-package-manager-archive.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bpkg/system-package-manager-archive.cxx b/bpkg/system-package-manager-archive.cxx index 53ef481..0df4580 100644 --- a/bpkg/system-package-manager-archive.cxx +++ b/bpkg/system-package-manager-archive.cxx @@ -438,9 +438,10 @@ namespace bpkg add ("private=" + (priv ? pn.string () : "[null]")); - // If this is a C-based language, add rpath for private installation. + // If this is a C-based language, add rpath for private installation, + // unless targeting Windows. // - if (priv && (lang_c || lang_cxx || lang_cc)) + if (priv && (lang_c || lang_cxx || lang_cc) && c != "windows") { dir_path l ((dir_path (root) /= "lib") /= pn.string ()); config.push_back ("config.bin.rpath='" + l.representation () + '\''); |