Description: link with pthread on some architectures
 There seem to be no reason to also add the flag to Linker'Linker_Options.
Bug-Debian: https://bugs.debian.org/760211
Forwarded: not-needed
Author: Nicolas Boulenguez <nicolas@debian.org>

--- a/sql/gnatcoll_sql.gpr
+++ b/sql/gnatcoll_sql.gpr
@@ -41,6 +41,9 @@
    case GnatColl_Sql_Conf.Library_Type is
       when "relocatable" =>
          for Leading_Library_Options use GnatColl_Sql_Conf.Ldflags;
+         --  In Debian, we link with --as-needed so this only applies on
+         --  architectures affected by https://bugs.debian.org/760211.
+         for Library_Options use ("-lpthread");
          for Library_Version use
             "lib" & project'Library_Name & Gnatcoll.So_Ext & "." & Version;
       when "static" | "static-pic" =>
