Skip to content

Commit 9412d1b

Browse files
authored
Merge pull request #329033 from Jayman2000/fix-317553
vcpkg: fix binaries not being able to find libstdc++
2 parents 244f70e + c860316 commit 9412d1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkgs/by-name/vc/vcpkg/package.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ stdenvNoCC.mkDerivation (finalAttrs: {
2727
--replace-fail "arm-linux-gnueabihf-as" "armv7l-unknown-linux-gnueabihf-as" \
2828
--replace-fail "arm-linux-gnueabihf-gcc" "armv7l-unknown-linux-gnueabihf-gcc" \
2929
--replace-fail "arm-linux-gnueabihf-g++" "armv7l-unknown-linux-gnueabihf-g++"
30+
# If we don’t turn this off, then you won’t be able to run binaries that
31+
# are installed by vcpkg.
32+
find triplets -name '*linux*.cmake' -exec bash -c 'echo "set(X_VCPKG_RPATH_KEEP_SYSTEM_PATHS ON)" >> "$1"' -- {} \;
3033
'';
3134

3235
installPhase = ''

0 commit comments

Comments
 (0)