Index: testing/Makefile.in
--- testing/Makefile.in.orig	2012-08-25 19:18:45.000000000 +0200
+++ testing/Makefile.in	2012-08-28 09:20:08.000000000 +0200
@@ -466,14 +466,14 @@
 gda_test_connection_5_0_SOURCES = \
         gda-test-connection.c
 
-gda_test_connection_5_0_LDADD = \
+gda_test_connection_5_0_LDADD = -static \
         $(top_builddir)/libgda/libgda-5.0.la \
         $(COREDEPS_LIBS)
 
 gda_test_blob_SOURCES = \
         gda-test-blob.c
 
-gda_test_blob_LDADD = \
+gda_test_blob_LDADD = -static \
         $(top_builddir)/libgda/libgda-5.0.la \
         $(COREDEPS_LIBS)
 
@@ -482,21 +482,21 @@
 	html.c \
         gda-provider-status.c
 
-gda_provider_status_LDADD = \
+gda_provider_status_LDADD = -static \
         $(top_builddir)/libgda/libgda-5.0.la \
         $(COREDEPS_LIBS)
 
 virtual_test_SOURCES = \
 	virtual-test.c
 
-virtual_test_LDADD = \
+virtual_test_LDADD = -static \
         $(top_builddir)/libgda/libgda-5.0.la \
         $(COREDEPS_LIBS)
 
 virtual_test_2_SOURCES = \
 	virtual-test-2.c
 
-virtual_test_2_LDADD = \
+virtual_test_2_LDADD = -static \
         $(top_builddir)/libgda/libgda-5.0.la \
         $(COREDEPS_LIBS)
 
@@ -504,7 +504,7 @@
 gdaui_test_data_entries_SOURCES = \
         gdaui-test-data-entries.c
 
-gdaui_test_data_entries_LDADD = \
+gdaui_test_data_entries_LDADD = -static \
         $(top_builddir)/libgda/libgda-5.0.la \
         $(top_builddir)/libgda-ui/libgda-ui-5.0.la \
         $(COREDEPS_LIBS) \
@@ -514,7 +514,7 @@
 gdaui_test_widget_entry_SOURCES = \
         gdaui-test-widget-entry.c
 
-gdaui_test_widget_entry_LDADD = \
+gdaui_test_widget_entry_LDADD = -static \
         $(top_builddir)/libgda/libgda-5.0.la \
         $(top_builddir)/libgda-ui/libgda-ui-5.0.la \
         $(COREDEPS_LIBS) \
@@ -524,7 +524,7 @@
 gdaui_test_errors_SOURCES = \
         gdaui-test-errors.c
 
-gdaui_test_errors_LDADD = \
+gdaui_test_errors_LDADD = -static \
         $(top_builddir)/libgda/libgda-5.0.la \
         $(top_builddir)/libgda-ui/libgda-ui-5.0.la \
 	$(top_builddir)/tests/libgda-test-5.0.la \
@@ -535,7 +535,7 @@
 gdaui_test_rt_editor_SOURCES = \
         gdaui-test-rt-editor.c
 
-gdaui_test_rt_editor_LDADD = \
+gdaui_test_rt_editor_LDADD = -static \
         $(top_builddir)/libgda/libgda-5.0.la \
         $(top_builddir)/libgda-ui/libgda-ui-5.0.la \
         $(COREDEPS_LIBS) \
@@ -630,31 +630,31 @@
 	rm -f $$list
 gda-provider-status$(EXEEXT): $(gda_provider_status_OBJECTS) $(gda_provider_status_DEPENDENCIES) $(EXTRA_gda_provider_status_DEPENDENCIES) 
 	@rm -f gda-provider-status$(EXEEXT)
-	$(AM_V_CCLD)$(LINK) $(gda_provider_status_OBJECTS) $(gda_provider_status_LDADD) $(LIBS)
+	$(AM_V_CCLD)$(LINK) -static $(gda_provider_status_OBJECTS) $(gda_provider_status_LDADD) $(LIBS)
 gda-test-blob$(EXEEXT): $(gda_test_blob_OBJECTS) $(gda_test_blob_DEPENDENCIES) $(EXTRA_gda_test_blob_DEPENDENCIES) 
 	@rm -f gda-test-blob$(EXEEXT)
-	$(AM_V_CCLD)$(LINK) $(gda_test_blob_OBJECTS) $(gda_test_blob_LDADD) $(LIBS)
+	$(AM_V_CCLD)$(LINK) -static $(gda_test_blob_OBJECTS) $(gda_test_blob_LDADD) $(LIBS)
 gda-test-connection-5.0$(EXEEXT): $(gda_test_connection_5_0_OBJECTS) $(gda_test_connection_5_0_DEPENDENCIES) $(EXTRA_gda_test_connection_5_0_DEPENDENCIES) 
 	@rm -f gda-test-connection-5.0$(EXEEXT)
-	$(AM_V_CCLD)$(LINK) $(gda_test_connection_5_0_OBJECTS) $(gda_test_connection_5_0_LDADD) $(LIBS)
+	$(AM_V_CCLD)$(LINK) -static $(gda_test_connection_5_0_OBJECTS) $(gda_test_connection_5_0_LDADD) $(LIBS)
 gdaui-test-data-entries$(EXEEXT): $(gdaui_test_data_entries_OBJECTS) $(gdaui_test_data_entries_DEPENDENCIES) $(EXTRA_gdaui_test_data_entries_DEPENDENCIES) 
 	@rm -f gdaui-test-data-entries$(EXEEXT)
-	$(AM_V_CCLD)$(gdaui_test_data_entries_LINK) $(gdaui_test_data_entries_OBJECTS) $(gdaui_test_data_entries_LDADD) $(LIBS)
+	$(AM_V_CCLD)$(gdaui_test_data_entries_LINK) -static $(gdaui_test_data_entries_OBJECTS) $(gdaui_test_data_entries_LDADD) $(LIBS)
 gdaui-test-errors$(EXEEXT): $(gdaui_test_errors_OBJECTS) $(gdaui_test_errors_DEPENDENCIES) $(EXTRA_gdaui_test_errors_DEPENDENCIES) 
 	@rm -f gdaui-test-errors$(EXEEXT)
-	$(AM_V_CCLD)$(gdaui_test_errors_LINK) $(gdaui_test_errors_OBJECTS) $(gdaui_test_errors_LDADD) $(LIBS)
+	$(AM_V_CCLD)$(gdaui_test_errors_LINK) -static $(gdaui_test_errors_OBJECTS) $(gdaui_test_errors_LDADD) $(LIBS)
 gdaui-test-rt-editor$(EXEEXT): $(gdaui_test_rt_editor_OBJECTS) $(gdaui_test_rt_editor_DEPENDENCIES) $(EXTRA_gdaui_test_rt_editor_DEPENDENCIES) 
 	@rm -f gdaui-test-rt-editor$(EXEEXT)
-	$(AM_V_CCLD)$(gdaui_test_rt_editor_LINK) $(gdaui_test_rt_editor_OBJECTS) $(gdaui_test_rt_editor_LDADD) $(LIBS)
+	$(AM_V_CCLD)$(gdaui_test_rt_editor_LINK) -static $(gdaui_test_rt_editor_OBJECTS) $(gdaui_test_rt_editor_LDADD) $(LIBS)
 gdaui-test-widget-entry$(EXEEXT): $(gdaui_test_widget_entry_OBJECTS) $(gdaui_test_widget_entry_DEPENDENCIES) $(EXTRA_gdaui_test_widget_entry_DEPENDENCIES) 
 	@rm -f gdaui-test-widget-entry$(EXEEXT)
-	$(AM_V_CCLD)$(gdaui_test_widget_entry_LINK) $(gdaui_test_widget_entry_OBJECTS) $(gdaui_test_widget_entry_LDADD) $(LIBS)
+	$(AM_V_CCLD)$(gdaui_test_widget_entry_LINK) -static $(gdaui_test_widget_entry_OBJECTS) $(gdaui_test_widget_entry_LDADD) $(LIBS)
 virtual-test$(EXEEXT): $(virtual_test_OBJECTS) $(virtual_test_DEPENDENCIES) $(EXTRA_virtual_test_DEPENDENCIES) 
 	@rm -f virtual-test$(EXEEXT)
-	$(AM_V_CCLD)$(LINK) $(virtual_test_OBJECTS) $(virtual_test_LDADD) $(LIBS)
+	$(AM_V_CCLD)$(LINK) -static $(virtual_test_OBJECTS) $(virtual_test_LDADD) $(LIBS)
 virtual-test-2$(EXEEXT): $(virtual_test_2_OBJECTS) $(virtual_test_2_DEPENDENCIES) $(EXTRA_virtual_test_2_DEPENDENCIES) 
 	@rm -f virtual-test-2$(EXEEXT)
-	$(AM_V_CCLD)$(LINK) $(virtual_test_2_OBJECTS) $(virtual_test_2_LDADD) $(LIBS)
+	$(AM_V_CCLD)$(LINK) -static $(virtual_test_2_OBJECTS) $(virtual_test_2_LDADD) $(LIBS)
 
 mostlyclean-compile:
 	-rm -f *.$(OBJEXT)
Index: tools/Makefile.in
--- tools/Makefile.in.orig	2012-08-25 19:18:46.000000000 +0200
+++ tools/Makefile.in	2012-08-28 09:19:18.000000000 +0200
@@ -654,19 +654,19 @@
 	rm -f $$list
 gda-list-config-5.0$(EXEEXT): $(gda_list_config_5_0_OBJECTS) $(gda_list_config_5_0_DEPENDENCIES) $(EXTRA_gda_list_config_5_0_DEPENDENCIES) 
 	@rm -f gda-list-config-5.0$(EXEEXT)
-	$(AM_V_CCLD)$(LINK) $(gda_list_config_5_0_OBJECTS) $(gda_list_config_5_0_LDADD) $(LIBS)
+	$(AM_V_CCLD)$(LINK) -static $(gda_list_config_5_0_OBJECTS) $(gda_list_config_5_0_LDADD) $(LIBS)
 gda-list-server-op-5.0$(EXEEXT): $(gda_list_server_op_5_0_OBJECTS) $(gda_list_server_op_5_0_DEPENDENCIES) $(EXTRA_gda_list_server_op_5_0_DEPENDENCIES) 
 	@rm -f gda-list-server-op-5.0$(EXEEXT)
-	$(AM_V_CCLD)$(LINK) $(gda_list_server_op_5_0_OBJECTS) $(gda_list_server_op_5_0_LDADD) $(LIBS)
+	$(AM_V_CCLD)$(LINK) -static $(gda_list_server_op_5_0_OBJECTS) $(gda_list_server_op_5_0_LDADD) $(LIBS)
 gda-sql-5.0$(EXEEXT): $(gda_sql_5_0_OBJECTS) $(gda_sql_5_0_DEPENDENCIES) $(EXTRA_gda_sql_5_0_DEPENDENCIES) 
 	@rm -f gda-sql-5.0$(EXEEXT)
-	$(AM_V_CCLD)$(LINK) $(gda_sql_5_0_OBJECTS) $(gda_sql_5_0_LDADD) $(LIBS)
+	$(AM_V_CCLD)$(LINK) -static $(gda_sql_5_0_OBJECTS) $(gda_sql_5_0_LDADD) $(LIBS)
 information-schema-doc$(EXEEXT): $(information_schema_doc_OBJECTS) $(information_schema_doc_DEPENDENCIES) $(EXTRA_information_schema_doc_DEPENDENCIES) 
 	@rm -f information-schema-doc$(EXEEXT)
-	$(AM_V_CCLD)$(LINK) $(information_schema_doc_OBJECTS) $(information_schema_doc_LDADD) $(LIBS)
+	$(AM_V_CCLD)$(LINK) -static $(information_schema_doc_OBJECTS) $(information_schema_doc_LDADD) $(LIBS)
 information-schema-types$(EXEEXT): $(information_schema_types_OBJECTS) $(information_schema_types_DEPENDENCIES) $(EXTRA_information_schema_types_DEPENDENCIES) 
 	@rm -f information-schema-types$(EXEEXT)
-	$(AM_V_CCLD)$(LINK) $(information_schema_types_OBJECTS) $(information_schema_types_LDADD) $(LIBS)
+	$(AM_V_CCLD)$(LINK) -static $(information_schema_types_OBJECTS) $(information_schema_types_LDADD) $(LIBS)
 
 mostlyclean-compile:
 	-rm -f *.$(OBJEXT)
