gollvm: fix up aux library linkage for unit tests

Link the backend core unit test against static copies of libmpc,
libgmp, and libmpfr, so as to insure that the unit test is runnable on
systems without these libraries installed.

Change-Id: I7bc456f67d6429e032e5513f6ce54cb8fa7e8e2f
Reviewed-on: https://go-review.googlesource.com/c/144178
Reviewed-by: Cherry Zhang <cherryyz@google.com>
diff --git a/unittests/BackendCore/CMakeLists.txt b/unittests/BackendCore/CMakeLists.txt
index 290b629..96182d3 100644
--- a/unittests/BackendCore/CMakeLists.txt
+++ b/unittests/BackendCore/CMakeLists.txt
@@ -41,5 +41,5 @@
 target_link_libraries(GoBackendCoreTests
   PRIVATE
   GoUnitTestUtils
-  "-L${EXTLIBDIR}" "-lmpc" "-lmpfr" "-lgmp"
+  "-L${EXTLIBDIR}" "-Wl,--push-state" "-Wl,-Bstatic" "-lmpc" "-lmpfr" "-lgmp" "-Wl,--pop-state"
   )