Add missing host ldlibs
Host builds were compiling without -Wl,--no-undefined. Add missing
host ldlibs so that -Wl,--no-undefined can be added again.
Test: m -j host
Bug: 32305815
Change-Id: I456098775ead2bddae3e61c7055b2bde3f6b38ff
diff --git a/tests/libs/Android.bp b/tests/libs/Android.bp
index e1a4239..fe0d6ab 100644
--- a/tests/libs/Android.bp
+++ b/tests/libs/Android.bp
@@ -363,6 +363,9 @@
android: {
shared_libs: ["libdl"],
},
+ host: {
+ host_ldlibs: ["-ldl"],
+ },
},
}
@@ -372,6 +375,14 @@
defaults: ["bionic_testlib_defaults"],
srcs: ["dlsym_from_this_functions.cpp"],
shared_libs: ["libtest_dlsym_from_this_grandchild"],
+ target: {
+ android: {
+ shared_libs: ["libdl"],
+ },
+ host: {
+ host_ldlibs: ["-ldl"],
+ },
+ },
}
// -----------------------------------------------------------------------------
@@ -410,6 +421,9 @@
android: {
shared_libs: ["libdl"],
},
+ host: {
+ host_ldlibs: ["-ldl"],
+ },
},
}