From 4b028edfe99ad1fa81e9d5be6b32b547f82710d1 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Tue, 10 Oct 2023 09:56:07 +0100 Subject: [PATCH] Revert "Remove extraneous rpath" This reverts commit 3f54ef7525ed357ce64bf375ef7ce3d70a52ba61. The filesystem layout used by pnpm means that a nesting of 2 directories deep is used in the wild and must remain. --- src/binding.gyp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/binding.gyp b/src/binding.gyp index 1ef7f385..473a8cc6 100644 --- a/src/binding.gyp +++ b/src/binding.gyp @@ -157,6 +157,7 @@ 'OTHER_LDFLAGS': [ # Ensure runtime linking is relative to sharp.node '-Wl,-rpath,\'@loader_path/../../sharp-libvips-<(platform_and_arch)/lib\'', + '-Wl,-rpath,\'@loader_path/../../node_modules/@sharpen/sharp-libvips-<(platform_and_arch)/lib\'', '-Wl,-rpath,\'@loader_path/../../../node_modules/@sharpen/sharp-libvips-<(platform_and_arch)/lib\'' ] } @@ -177,6 +178,7 @@ '-Wl,-s', '-Wl,--disable-new-dtags', '-Wl,-rpath=\'$$ORIGIN/../../sharp-libvips-<(platform_and_arch)/lib\'', + '-Wl,-rpath=\'$$ORIGIN/../../node_modules/@sharpen/sharp-libvips-<(platform_and_arch)/lib\'', '-Wl,-rpath=\'$$ORIGIN/../../../node_modules/@sharpen/sharp-libvips-<(platform_and_arch)/lib\'' ] }