[glom] tests: Link to all necessary libraries.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] tests: Link to all necessary libraries.
- Date: Wed, 5 Jan 2011 23:18:25 +0000 (UTC)
commit 3d39ec8d4c8161e1507f4f163b940ea536e06465
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Jan 6 00:18:16 2011 +0100
tests: Link to all necessary libraries.
* Makefile_libglom.am: Define libglom_all_libs to avoid duplication.
* Makefile_glom.am: Use libglom_all_libs instead of repeating.
* Makefile_tests.am: Use libglom_all_libs to explicitly link against the
dependencies of libglom. This seems to have been automatic with the linker in
previous versions of Ubuntu, but not with Ubuntu Natty.
ChangeLog | 10 ++++++++++
Makefile_glom.am | 4 ++--
Makefile_libglom.am | 4 +++-
Makefile_tests.am | 3 +--
4 files changed, 16 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c8c6338..9917f08 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2011-01-06 Murray Cumming <murrayc murrayc com>
+
+ tests: Link to all necessary libraries.
+
+ * Makefile_libglom.am: Define libglom_all_libs to avoid duplication.
+ * Makefile_glom.am: Use libglom_all_libs instead of repeating.
+ * Makefile_tests.am: Use libglom_all_libs to explicitly link against the
+ dependencies of libglom. This seems to have been automatic with the linker in
+ previous versions of Ubuntu, but not with Ubuntu Natty.
+
2011-01-05 Murray Cumming <murrayc murrayc com>
Use Gdk::Cursor via RefPtr.
diff --git a/Makefile_glom.am b/Makefile_glom.am
index bc59e40..5560574 100644
--- a/Makefile_glom.am
+++ b/Makefile_glom.am
@@ -384,8 +384,8 @@ glom_glom_SOURCES = \
$(glom_source_files)
glom_all_libs = $(win_resfile) \
- glom/libglom/libglom-$(GLOM_ABI_VERSION).la \
- $(GLOM_LIBS) $(PYTHON_LIBS) $(BOOST_PYTHON_LIBS) $(INTLLIBS)
+ glom/libglom/libglom-$(GLOM_ABI_VERSION).la $(libglom_all_libs) \
+ $(GLOM_LIBS) $(INTLLIBS)
if !GLOM_ENABLE_MAEMO
glom_all_libs += -lgettextpo
endif
diff --git a/Makefile_libglom.am b/Makefile_libglom.am
index 5f17ba1..94c02ad 100644
--- a/Makefile_libglom.am
+++ b/Makefile_libglom.am
@@ -41,7 +41,9 @@ libglom_d_b_view_includedir = $(libglom_d_bakery_includedir)/view
libglom_d_b_view_include_HEADERS = $(libglom_d_b_view_headers)
glom_libglom_libglom_ GLOM_ABI_VERSION@_la_SOURCES = $(libglom_sources)
-glom_libglom_libglom_ GLOM_ABI_VERSION@_la_LIBADD = $(LIBGLOM_LIBS) $(PYTHON_LIBS) $(BOOST_PYTHON_LIBS)
+
+libglom_all_libs = $(LIBGLOM_LIBS) $(PYTHON_LIBS) $(BOOST_PYTHON_LIBS)
+glom_libglom_libglom_ GLOM_ABI_VERSION@_la_LIBADD = $(libglom_all_libs)
if HOST_WIN32
glom_libglom_libglom_ GLOM_ABI_VERSION@_la_LIBADD += -lws2_32
diff --git a/Makefile_tests.am b/Makefile_tests.am
index e299315..15e37e2 100644
--- a/Makefile_tests.am
+++ b/Makefile_tests.am
@@ -51,8 +51,7 @@ dist_noinst_SCRIPTS = tests/test_dtd_file_validation.sh \
#TESTS_ENVIRONMENT=which valgrind && valgrind --tool=memcheck --leak-check=full --leak-resolution=high --trace-children=yes --num-callers=30
-# This also links to the libraries in LIBGLOM_LIBS
-tests_ldadd = glom/libglom/libglom-$(GLOM_ABI_VERSION).la
+tests_ldadd = glom/libglom/libglom-$(GLOM_ABI_VERSION).la $(libglom_all_libs)
tests_cppflags = $(glom_includes) $(LIBGLOM_CFLAGS) $(PYTHON_CPPFLAGS) $(BOOST_PYTHON_CFLAGS) $(glom_defines)
tests_cppflags_ui = $(glom_includes) $(GLOM_CFLAGS) $(PYTHON_CPPFLAGS) $(BOOST_PYTHON_CFLAGS) $(glom_defines)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]