File: 03-Ease-static-lib-compilation.patch

package info (click to toggle)
apq-postgresql 3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 384 kB
  • ctags: 187
  • sloc: ada: 2,169; ansic: 2,003; makefile: 93; sql: 3; sh: 2
file content (56 lines) | stat: -rw-r--r-- 1,241 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
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;
-