Reland "Static link gtests with ART libraries" am: 454a6940e7 am: 47b5db52e5 am: 6f278463dd

Original change: https://android-review.googlesource.com/c/platform/art/+/2623410

Change-Id: I79c9ea286a60364ac7404acf001f27bf2c3b63be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>