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

2012-06-21 Thread Colomban Wendling
Le 21/06/2012 10:06, Chow Loong Jin a écrit :
> 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 
> ---
>  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)

Applied, thanks.
___
Geany-devel mailing list
Geany-devel@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


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

2012-06-21 Thread Chow Loong Jin
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 
---
 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

___
Geany-devel mailing list
Geany-devel@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel