Re: NM-0.7.1rc1 fails to build with --as-needed



On Thu, 2009-02-26 at 22:51 +0300, Victor Ashirov wrote:
> Hi!
> I'm trying to build NM with --as-needed LDFLAG. NM-0.7 compiles and
> works fine, NM-0.7.1rc1 fails to compile.

Odd; what gcc version?

Does the following patch work better?  Perhaps I missed something when
splitting out the reader/writer.

Dan

diff --git a/system-settings/plugins/keyfile/io/Makefile.am b/system-settings/plugins/keyfile/io/Makefile.am
index 9333c50..4f6e3d6 100644
--- a/system-settings/plugins/keyfile/io/Makefile.am
+++ b/system-settings/plugins/keyfile/io/Makefile.am
@@ -16,5 +16,9 @@ libkeyfile_io_la_CPPFLAGS = \
 	$(GLIB_CFLAGS) \
 	$(DBUS_CFLAGS)
 
-libkeyfile_io_la_LIBADD = $(GLIB_LIBS)
+libkeyfile_io_la_LDFLAGS = -module -avoid-version
+libkeyfile_io_la_LIBADD = \
+	$(GLIB_LIBS) \
+	$(top_builddir)/libnm-util/libnm-util.la \
+	$(top_builddir)/libnm-glib/libnm_glib.la
 



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