mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Revert "Remove extraneous rpath"
This reverts commit 3f54ef7525.
The filesystem layout used by pnpm means that a nesting of 2
directories deep is used in the wild and must remain.
This commit is contained in:
@@ -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\''
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user