1 diff --git a/sqlite/gnatcoll_sqlite.gpr b/sqlite/gnatcoll_sqlite.gpr
2 index 5bd53d35..580739f8 100644
3 --- a/sqlite/gnatcoll_sqlite.gpr
4 +++ b/sqlite/gnatcoll_sqlite.gpr
5 @@ -69,7 +69,12 @@ project GnatColl_Sqlite is
6 for Source_Dirs use (".", "amalgamation");
8 for Source_Dirs use (".");
9 - for Library_Options use ("-lsqlite3") & Thread_Lib;
10 + case Library_Type is
11 + when "relocatable" =>
12 + for Library_Options use ("-lsqlite3") & Thread_Lib;