From 1afab626ba5cdfb16dccd9249e4223d16d131c71 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 22 Mar 2023 10:47:57 +0200 Subject: Don't pass config.bin.rpath in pkg-bindist if targeting Windows --- bpkg/system-package-manager-archive.cxx | 5 +++-- 1 file 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 () + '\''); -- cgit v1.1