Force libxml2.so into the shared toolchain

Change-Id: I3b0f86cb29b7697e464dc812d735343fc8ac1d85
diff --git a/BUILD.gn b/BUILD.gn
index 4a02287..ccc6f78 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -26,6 +26,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
+import("//build/toolchain/shared.gni")
 import("//packages/package.gni")
 
 # This is the configuration needed to use libxml2.
@@ -58,7 +59,19 @@
   }
 }
 
-shared_library("libxml2") {
+group("libxml2") {
+  public_configs = [ ":libxml2_config" ]
+
+  public_deps = [
+    ":xml2_lib($shared_toolchain)",
+  ]
+}
+
+shared_library("xml2_lib") {
+  visibility = [ ":*" ]
+
+  output_name = "xml2"
+
   sources = [
     "DOCBparser.c",
     "HTMLparser.c",