diff options
author | Jiyong Park <jiyong@google.com> | 2017-09-13 17:37:40 +0900 |
---|---|---|
committer | Jiyong Park <jiyong@google.com> | 2017-09-13 17:37:40 +0900 |
commit | 864c07077b0283ecf9bd36a0381951a19ec8c3df (patch) | |
tree | 172b9258545968c27f043a645d9cb61397327be4 | |
parent | 9e6c95deda2649b510261fbf3afdee7fb955266b (diff) | |
download | native-864c07077b0283ecf9bd36a0381951a19ec8c3df.tar.gz |
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
-rw-r--r-- | cmds/lshal/Android.bp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmds/lshal/Android.bp b/cmds/lshal/Android.bp index 67b5b46829..8a64717ea4 100644 --- a/cmds/lshal/Android.bp +++ b/cmds/lshal/Android.bp @@ -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" ] |