File: no-link-static.diff

package info (click to toggle)
libgnatcoll-db 21.0.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 11,628 kB
  • sloc: ansic: 128,019; ada: 26,428; sql: 15,777; python: 2,263; makefile: 627; sh: 42
file content (21 lines) | stat: -rw-r--r-- 704 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: only set -l Library_Options for relocatable builds.
 gprbuild has stopped ignoring Library_Options during static builds.
Author: Nicolas Boulenguez <nicolas@debian.org>
Forwarded: no

--- a/sqlite/gnatcoll_sqlite.gpr
+++ b/sqlite/gnatcoll_sqlite.gpr
@@ -70,7 +70,12 @@
          for Source_Dirs use (".", "amalgamation");
       when "external" =>
          for Source_Dirs use (".");
-         for Library_Options use ("-lsqlite3") & Thread_Lib;
+         case Library_Type is
+            when "relocatable" =>
+               for Library_Options use ("-lsqlite3") & Thread_Lib;
+            when others =>
+               null;
+         end case;
    end case;
 
    package Compiler is