Tweak linux_glibc properties for musl builds in external/virglrenderer am: cf1de0f462 am: f6c12bd7e3 am: 1763bf7fde

Original change: https://android-review.googlesource.com/c/platform/external/virglrenderer/+/2019635

Change-Id: I45b3c3b5a26cf46fadc94a17ec64c524ec6e9780
diff --git a/Android.bp b/Android.bp
index 7c632ce..1b3a2e8 100644
--- a/Android.bp
+++ b/Android.bp
@@ -122,22 +122,21 @@
         "src/vrend_winsys_gbm.c",
     ],
     target: {
+        host_linux: {
+            shared_libs: [
+                "libdrm",
+                "libepoxy",
+                "libgbm",
+            ],
+        },
         linux_glibc: {
             // Avoid linking to another host copy of libdrm; this library will cause
             // binary GPU drivers to be loaded from the host, which might be linked
             // to a system copy of libdrm, which conflicts with the AOSP one
             allow_undefined_symbols: true,
             header_libs: ["libdrm_headers"],
-            shared_libs: [
-                "libepoxy",
-                "libgbm"
-            ],
-        },
-        linux_bionic: {
-            shared_libs: [
+            exclude_shared_libs: [
                 "libdrm",
-                "libepoxy",
-                "libgbm",
             ],
         },
         android: {