From 0416641baaf138f4ccdf2b2827588e6d81c5fdac Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 5 Mar 2002 17:55:23 +0000 Subject: [PATCH] At this moment, --enable-debug adds debugging information to most of the parts o f postgresql. The jdbc drivers are never compiled with debugging support. This p atch make sure that debugging information is added to the jdbc jar when the --en able-debug is added. This was usefull for me for debugging some java jdbc poolin g objects but this might perhaps be usefull for other people too? Dries Verachtert --- configure.in | 2 +- src/Makefile.global.in | 3 +- src/interfaces/jdbc/Makefile | 5 +- src/interfaces/jdbc/build.xml | 476 +++++++++++++++++----------------- 4 files changed, 247 insertions(+), 239 deletions(-) diff --git a/configure.in b/configure.in index 9ac29b62ce..165f546464 100644 --- a/configure.in +++ b/configure.in @@ -259,7 +259,7 @@ AC_SUBST(enable_rpath) # PGAC_ARG_BOOL(enable, debug, no, [ --enable-debug build with debugging symbols (-g)]) - +AC_SUBST(enable_debug) # # C compiler diff --git a/src/Makefile.global.in b/src/Makefile.global.in index c2e37f8e9d..aad4c400d1 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -1,5 +1,5 @@ # -*-makefile-*- -# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.141 2001/12/20 21:23:05 momjian Exp $ +# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.142 2002/03/05 17:55:22 momjian Exp $ #------------------------------------------------------------------------------ # All PostgreSQL makefiles include this file and use the variables it sets, @@ -132,6 +132,7 @@ MULTIBYTE = @MULTIBYTE@ enable_shared = @enable_shared@ enable_rpath = @enable_rpath@ enable_nls = @enable_nls@ +enable_debug = @enable_debug@ python_version = @python_version@ python_includespec = @python_includespec@ diff --git a/src/interfaces/jdbc/Makefile b/src/interfaces/jdbc/Makefile index 311645a6c6..3b88af4d3c 100644 --- a/src/interfaces/jdbc/Makefile +++ b/src/interfaces/jdbc/Makefile @@ -4,7 +4,7 @@ # # Copyright (c) 2001, PostgreSQL Global Development Group # -# $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.33 2001/07/06 23:07:20 petere Exp $ +# $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.34 2002/03/05 17:55:23 momjian Exp $ # #------------------------------------------------------------------------- @@ -17,7 +17,8 @@ minorversion := $(shell echo $(VERSION) | sed 's/^[0-9][0-9]*\.\([0-9][0-9]*\).* properties := -Dmajor=$(majorversion) -Dminor=$(minorversion) \ -Dfullversion=$(VERSION) \ - -Ddef_pgport=$(DEF_PGPORT) + -Ddef_pgport=$(DEF_PGPORT) \ + -Denable_debug=$(enable_debug) all: $(ANT) -buildfile $(srcdir)/build.xml all \ diff --git a/src/interfaces/jdbc/build.xml b/src/interfaces/jdbc/build.xml index c378d8df19..a712682536 100644 --- a/src/interfaces/jdbc/build.xml +++ b/src/interfaces/jdbc/build.xml @@ -1,235 +1,241 @@ - - - - -]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.40.0