aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-03-22 10:47:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-03-22 10:47:57 +0200
commit1afab626ba5cdfb16dccd9249e4223d16d131c71 (patch)
treef5e33e8c1adb2784426b62741f471721b1a80fb7
parent66649d7b7fa3c1561dc553ad62a2b6b3164a52cf (diff)
Don't pass config.bin.rpath in pkg-bindist if targeting Windows
-rw-r--r--bpkg/system-package-manager-archive.cxx5
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 () + '\'');