A fast, helpful, and open-source document parser
napi: stop adding the build-time pdfium dir to the .node rpath
Sammy Touranie604da867dca
diff --git a/crates/liteparse-napi/build.rs b/crates/liteparse-napi/build.rsindex 6cd8f4d..7dc2eca 100644--- a/crates/liteparse-napi/build.rs+++ b/crates/liteparse-napi/build.rs@@ -23,11 +23,6 @@ fn main() {}}- // Also add the build-time pdfium path so local dev builds work without- // copying libpdfium manually.- if let Ok(lib_path) = env::var("DEP_PDFIUM_LIB_PATH")- && (target_os == "macos" || target_os == "linux")- {- println!("cargo:rustc-link-arg=-Wl,-rpath,{lib_path}");- }+ // Don't add the build-time pdfium dir as an rpath: pdfium-sys already tries+ // it at runtime (PDFIUM_LIB_DIR), and it would end up in release artifacts.}