[anjuta] bgo#590337 – Compile failure: not allowed to link against a -module



commit 3ca7c2aa06760b4233bac8e5a879c483c7afbd59
Author: Daniel Macks <dmacks netspace org>
Date:   Tue Aug 4 21:41:58 2009 +0200

    bgo#590337 â?? Compile failure: not allowed to link against a -module

 configure.in               |    1 +
 plugins/gbf-am/Makefile.am |   13 ++++++++++---
 plugins/gdb/Makefile.am    |    8 ++++++--
 3 files changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/configure.in b/configure.in
index ae199f5..3cf5c67 100644
--- a/configure.in
+++ b/configure.in
@@ -72,6 +72,7 @@ GNOME_DOC_INIT
 AC_PROG_CC
 AC_PROG_CPP
 AC_LANG_C
+AM_PROG_CC_C_O
 
 GNOME_COMPILE_WARNINGS(maximum)
 AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS"
diff --git a/plugins/gbf-am/Makefile.am b/plugins/gbf-am/Makefile.am
index 3641d5c..257a15a 100644
--- a/plugins/gbf-am/Makefile.am
+++ b/plugins/gbf-am/Makefile.am
@@ -54,13 +54,20 @@ libgbf_am_la_LIBADD = \
 noinst_PROGRAMS = test
 
 test_SOURCES = \
-	test.c
+	test.c \
+	gbf-am-project.c \
+	gbf-am-project.h \
+	gbf-am-config.c \
+	gbf-am-properties.c
 
 test_LDADD = \
 	libgbf-am.la \
 	$(LIBANJUTA_LIBS) \
-  $(LIBXML_LIBS)
-
+	$(LIBXML_LIBS)
+# This last line do nothing but it is needed to avoid the error
+# gbf-am-*.o created with both libtool and without
+# Need AM_PROG_CC_C_0 in configure.in too
+test_CFLAGS = $(AM_CFLAGS)
 
 EXTRA_DIST = \
 	$(plugin_in_files) \
diff --git a/plugins/gdb/Makefile.am b/plugins/gdb/Makefile.am
index 967e71e..6a010e4 100644
--- a/plugins/gdb/Makefile.am
+++ b/plugins/gdb/Makefile.am
@@ -46,8 +46,12 @@ libanjuta_gdb_la_SOURCES = \
 	utilities.h
 
 noinst_PROGRAMS = gdbmi-test
-gdbmi_test_SOURCES = gdbmi-test.c
-gdbmi_test_LDADD = libanjuta-gdb.la $(LIBANJUTA_LIBS) $(LIBXML_LIBS)
+gdbmi_test_SOURCES = gdbmi-test.c gdbmi.c gdbmi.h debugger.h
+gdbmi_test_LDADD = $(LIBANJUTA_LIBS) $(LIBXML_LIBS)
+# This last line do nothing but it is needed to avoid the error
+# gdbmi.o created with both libtool and without
+# Need AM_PROG_CC_C_0 in configure.in too
+gdbmi_test_CFLAGS = $(AM_CFLAGS)
 
 EXTRA_DIST = \
 	$(plugin_pixmaps_DATA) \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]