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

Colomban Wendling lists.ban at xxxxx
Thu Jun 21 14:27:15 UTC 2012


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 <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)

Applied, thanks.



More information about the Devel mailing list