Description: link gtkada-canvas.adb with -lm
 gtkada-canvas.adb uses math functions either built in gcc or provided
 by -lm, depending on the architecture.
 .
 On Debian, --as-needed is active so -lm will be ignored on
 architectures where none of its symbols is required.
 .
 If this is ever applied upstream, src/opengl/gtkada_gl.gpr should be
 modified too.
Bug-Debian: https://bugs.debian.org/717014.
Author: Nicolas Boulenguez <nicolas@debian.org>

--- a/src/gtkada.gpr
+++ b/src/gtkada.gpr
@@ -63,7 +63,7 @@
    case Shared.Library_Kind is
       when "relocatable" =>
          for Leading_Library_Options use Shared.Ldflags;
-         for Library_Options use Shared.Gtk_Libs;
+         for Library_Options use Shared.Gtk_Libs & ("-lm");
       when others =>
          null;
    end case;
@@ -75,7 +75,7 @@
    package IDE      renames Shared.IDE;
 
    package Linker is
-      for Linker_Options use Shared.Gtk_Libs;
+      for Linker_Options use Shared.Gtk_Libs & ("-lm");
    end Linker;
 
    package Install is
