From dfc348fb2bf782fa558e4aa67298305743a63386 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Thu, 28 Sep 2017 16:24:08 -0700 Subject: Remove default libraries libdl is part of system_shared_libs now. -ldl -lpthread -lm are now defaults for host_ldlibs on Linux and Darwin. -lrt is a default for host_ldlibs on Linux. Test: m host Test: objdump -x out/host/linux-x86/lib64/libunwind.so Test: nm -a out/host/linux-x86/lib64/libunwind.so | grep __CTOR_END__ Change-Id: I1ae950ef49f741d4df649405449d01f3f16f8ef1 --- Android.bp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Android.bp b/Android.bp index 8e390041..bbebc33f 100644 --- a/Android.bp +++ b/Android.bp @@ -403,19 +403,12 @@ cc_library { }, target: { - android: { - shared_libs: ["libdl"], - }, - linux: { + linux_glibc: { + // Remove dependencies on libgcc ldflags: ["-nostdlib"], - host_ldlibs: [ - "-lc", - "-lpthread", - ], }, linux_bionic: { enabled: true, - shared_libs: ["libdl"], }, }, -- cgit v1.2.3