1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
--- apq-postgresql.orig/apq-postgresql.gpr.in
+++ apq-postgresql/apq-postgresql.gpr.in
@@ -1,46 +1,31 @@
-- Build file for Aw_Lib.
--
--- author Marcelo Coraça de Freitas <marcelo.batera@gmail.com>
+-- author Marcelo Coraça de Freitas <marcelo.batera@gmail.com>
--
-- Repository information:
-- $Date: 2008-02-25 19:47:48 -0300 (Seg, 25 Fev 2008) $
-- $Revision: 234 $
-- $Author: ogro $
-
-with "apq.gpr";
+with "apq";
project APQ.PostgreSQL is
version := $version;
-
-
+
for Languages use ( "Ada", "C" );
-
for Source_Dirs use ( "src" );
-
for Object_Dir use "obj";
-
+
-- LIBRARY
for Library_Dir use "lib";
for Library_Name use "apq-postgresql";
- for Library_Kind use APQ'Library_Kind;
+ for Library_Kind use External ("Libtype","dynamic");
for Library_Version use "libapq-postgresql.so." & Version;
-
-
+ for Library_Options use ("-Wl,--export-dynamic", $LIBDIR, "-lpq", "-lapq-postgresqlhelp");
+
package Compiler is
for Default_Switches ("ada") use ("-O2", "-gnat05");
end Compiler;
-
-
- package Linker is
- for Default_Switches ("Ada") use (
- "-lpq",
- "-lapq-postgresqlhelp"
- );
- --for Default_Switches ("ada") use ("-ldl", "-lpq");
- end Linker;
-
end APQ.PostgreSQL;
-
|