GNOME Bugzilla – Bug 666345
Fix compilation error caused by wrong Automake rules.
Last modified: 2011-12-16 16:29:18 UTC
I got source code from http://git.gnome.org/browse/gnome-bluetooth by `git clone http://git.gnome.org/browse/gnome-bluetooth`, and found it can not be compiled. So I did this patch to fix it on top of 691225e963cdec181193d2bc79577601087b36f2 .
Created attachment 203632 [details] [review] Fix compilation error caused by wrong Automake rules.
Review of attachment 203632 [details] [review]: Changes with no explanations. ::: applet/Makefile.am @@ +5,3 @@ bluetooth_applet_SOURCES = main.c notify.h notify.c agent.h agent.c +bluetooth_applet_LDADD = $(builddir)/libgnome-bluetooth-applet.la $(top_builddir)/lib/libgnome-bluetooth.la It should already be dragged in by the deps of libgnome-bluetooth-applet.la @@ +11,2 @@ test_agentdialog_SOURCES = test-agentdialog.c notify.h notify.c +test_agentdialog_LDADD = $(builddir)/libgnome-bluetooth-applet.la Why did you remove the dep here? @@ +16,2 @@ AM_CFLAGS += $(APPLET_CFLAGS) $(WARN_CFLAGS) $(DISABLE_DEPRECATED) -DPKGDATADIR="\"$(pkgdatadir)\"" -DG_LOG_DOMAIN=\"BluetoothApplet\" +AM_LDFLAGS = @APPLET_LIBS@ And add it (badly) here? ::: lib/Makefile.am @@ +65,3 @@ -DPLUGINDIR=\"$(libdir)/gnome-bluetooth/plugins\" \ -DG_LOG_DOMAIN=\"Bluetooth\" +AM_LDFLAGS = @LIBGNOMEBT_LIBS@ Why? @@ +119,3 @@ MAINTAINERCLEANFILES = Makefile.in +bluetooth-client-glue.c bluetooth-client-glue.h: bluetooth-client.xml What does this change?
*** This bug has been marked as a duplicate of bug 665639 ***