Skip to content

Commit a7eb76a

Browse files
committed
Set RUNPATH on ELF files in lcab
CMK-29418 Change-Id: I37fa432365010d1e3c021e81ab41f97e270b0e17
1 parent 5d3885f commit a7eb76a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

omd/packages/lcab/BUILD

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
load("@rules_pkg//pkg:mappings.bzl", "pkg_attributes", "pkg_files")
22
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
3+
load("//bazel/rules:patchelf.bzl", "set_runpath")
4+
5+
set_runpath(
6+
name = "lcab_runpath",
7+
srcs = ["@lcab//:lcab_bin"],
8+
rpaths = ["${ORIGIN}/../lib"],
9+
)
310

411
pkg_files(
512
name = "lcab_bin",
6-
srcs = ["@lcab//:lcab_bin"],
13+
srcs = [":lcab_runpath"],
714
attributes = pkg_attributes(
815
mode = "0755",
916
),

0 commit comments

Comments
 (0)