[Geany-devel] [PATCH] Link export plugin against libm (-lm)

Chow Loong Jin hyperair at xxxxx
Thu Jun 21 08:06:19 UTC 2012


The export plugin uses the pow() function from libm without linking against
it. It has worked so far because Geany itself has a link against libm, but
should that be removed in the future, this would fail to resolve symbols.

Signed-off-by: Chow Loong Jin <hyperair at debian.org>
---
 plugins/Makefile.am |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 88a6eba..b0be4e8 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -94,7 +94,7 @@ splitwindow_la_CFLAGS   = -DG_LOG_DOMAIN=\""SplitWindow"\"
 demoplugin_la_LIBADD    = $(GTK_LIBS)
 classbuilder_la_LIBADD  = $(GTK_LIBS)
 htmlchars_la_LIBADD     = $(GTK_LIBS)
-export_la_LIBADD        = $(GTK_LIBS)
+export_la_LIBADD        = $(GTK_LIBS) -lm
 saveactions_la_LIBADD   = $(GTK_LIBS)
 filebrowser_la_LIBADD   = $(GTK_LIBS)
 splitwindow_la_LIBADD   = $(GTK_LIBS)
-- 
1.7.9.5




More information about the Devel mailing list