summary refs log blame commit diff
path: root/pkgs/os-specific/linux/chromium-os/libbrillo/0008-libbrillo-don-t-leak-source-absolute-paths.patch
blob: 523a2359bddfa6cbac902901d308c497a0ce927d (plain) (tree)
1
2
3
4


                                                                      
                                                                  

























                                                               
From 308678664652685d48dccc4ea6d55195a307e36d Mon Sep 17 00:00:00 2001
From: Alyssa Ross <hi@alyssa.is>
Date: Sun, 1 Dec 2019 14:55:21 +0000
Subject: [PATCH 08/11] libbrillo: don't leak source-absolute paths

---
 libbrillo/BUILD.gn | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/libbrillo/BUILD.gn b/libbrillo/BUILD.gn
index c3ca0054b..4ae5aced0 100644
--- a/libbrillo/BUILD.gn
+++ b/libbrillo/BUILD.gn
@@ -260,10 +260,9 @@ action("libbrillo-${libbase_ver}") {
     deps += [ ":lib" + sublib.library_name ]
   }
   script = "//common-mk/write_args.py"
-  outputs = [
-    "${root_out_dir}/lib/libbrillo-${libbase_ver}.so",
-  ]
-  args = [ "--output" ] + outputs + [ "--" ] + [
+  lib_path = "${root_out_dir}/lib/libbrillo-${libbase_ver}.so"
+  outputs = [ lib_path ]
+  args = [ "--output", rebase_path(lib_path), "--",
            "GROUP",
            "(",
            "AS_NEEDED",
-- 
2.23.0