Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 864c0707 authored by Jiyong Park's avatar Jiyong Park
Browse files

Add runpath to lshal_test

android.hardware.test.baz@1.0.so is installed to /data/nativetest(64),
and no longer to /system/lib(64) or /system/lib(64)/vndk, because the
interface library is only for testing.

Set runpath so that lshal_test can find the interface library in the
non-standard directory.

Bug: 65603915
Test: m -j lshal_test
adb push out/target/product/<name>/data/nativetest* /data
adb shell /data/nativetest/lshal_test/lshal_test

Change-Id: I854b08acb6442990ed369bfbc517ad1a93c94584
parent 9e6c95de
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -61,6 +61,10 @@ cc_test {
    shared_libs: [
        "android.hardware.tests.baz@1.0"
    ],
    ldflags: [
        "-Wl,--rpath,${ORIGIN}/..",
        "-Wl,--enable-new-dtags",
    ],
    srcs: [
        "test.cpp"
    ]