crt: test: Compile libglbctors.dll with libgcc

The t_global_ctors.exe test is checking if the build with libgcc is
working fine, so compile also dependent library libglbctors.dll with
libgcc.

Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/mingw-w64-crt/testcases/Makefile.am b/mingw-w64-crt/testcases/Makefile.am
index d19537e..b738ee2 100644
--- a/mingw-w64-crt/testcases/Makefile.am
+++ b/mingw-w64-crt/testcases/Makefile.am
@@ -30,7 +30,7 @@
 
 # Used by t_global_ctors
 libglbctors.dll: libglbctors.o
-	$(LINK) -shared -o $@ $^
+	$(LINK) -shared -static -o $@ $^ @TARGET_LIBGCC_FILE_NAME@
 t_global_ctors.exe: libglbctors.dll
 
 # Used by t_tls_dll