File: no_rpath.patch

package info (click to toggle)
rocksdb 9.11.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 46,252 kB
  • sloc: cpp: 503,390; java: 43,039; ansic: 9,834; python: 8,381; perl: 5,822; sh: 4,921; makefile: 2,386; asm: 550; xml: 342
file content (35 lines) | stat: -rw-r--r-- 922 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: "Laszlo Boszormenyi (GCS)" <gcs@debian.org>
Date: Sun, 24 Nov 2024 23:29:28 -0800
Subject: do not build tools with rpath

Forwarded: not-needed
Last-Update: 2021-10-16

These will be installed semi-manual to usr/bin and will use system libraries.
---
 CMakeLists.txt       | 1 +
 tools/CMakeLists.txt | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 038b23c..b85e4ab 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1569,6 +1569,7 @@ if(WITH_TESTS)
 endif()
 
 if(WITH_BENCHMARK_TOOLS)
+  set(CMAKE_SKIP_BUILD_RPATH TRUE)
   add_executable(db_bench${ARTIFACT_SUFFIX}
     tools/simulated_hybrid_file_system.cc
     tools/db_bench.cc
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index 19030e8..a66410d 100644
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -1,3 +1,5 @@
+set(CMAKE_SKIP_BUILD_RPATH TRUE)
+
 set(CORE_TOOLS
   sst_dump.cc
   ldb.cc)