mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-28 00:11:53 +02:00
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
This commit is contained in:
parent
af41101a40
commit
0416641baa
@ -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
|
||||
|
@ -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@
|
||||
|
@ -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 \
|
||||
|
@ -4,7 +4,7 @@
|
||||
build file to allow ant (http://jakarta.apache.org/ant/) to be used
|
||||
to build the PostgreSQL JDBC Driver
|
||||
|
||||
$Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/build.xml,v 1.20 2002/02/24 16:12:51 davec Exp $
|
||||
$Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/build.xml,v 1.21 2002/03/05 17:55:23 momjian Exp $
|
||||
|
||||
-->
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
<property name="jardir" value="jars" />
|
||||
<property name="builddir" value="build" />
|
||||
<property name="package" value="org/postgresql" />
|
||||
<property name="debug" value="yes" />
|
||||
<property name="debug" value="off" />
|
||||
|
||||
<!--
|
||||
This is a simpler method than utils.CheckVersion
|
||||
@ -149,6 +149,12 @@
|
||||
|
||||
<!-- Prepares the build directory -->
|
||||
<target name="prepare">
|
||||
<!-- use the enable_debug option from configure -->
|
||||
<condition property="debug" value="on">
|
||||
<and>
|
||||
<equals arg1="${enable_debug}" arg2="yes" />
|
||||
</and>
|
||||
</condition>
|
||||
<mkdir dir="${builddir}" />
|
||||
<mkdir dir="${jardir}" />
|
||||
</target>
|
||||
@ -156,7 +162,7 @@
|
||||
|
||||
<!-- This builds the examples -->
|
||||
<target name="examples" depends="compile">
|
||||
<javac srcdir="${srcdir}" destdir="${builddir}">
|
||||
<javac srcdir="${srcdir}" destdir="${builddir}" debug="${debug}">
|
||||
<include name="example/**" />
|
||||
<exclude name="example/corba/**"/>
|
||||
<exclude name="example/blobtest.java" unless="jdk1.2+"/>
|
||||
@ -170,7 +176,7 @@
|
||||
<arg value="stock.idl" />
|
||||
</exec>
|
||||
|
||||
<javac srcdir="${srcdir}" destdir="${builddir}">
|
||||
<javac srcdir="${srcdir}" destdir="${builddir}" debug="${debug}">
|
||||
<include name="example/corba/**" />
|
||||
</javac>
|
||||
</target>
|
||||
@ -215,7 +221,7 @@
|
||||
|
||||
|
||||
<target name="test" depends="jar" if="junit">
|
||||
<javac srcdir="${srcdir}" destdir="${builddir}">
|
||||
<javac srcdir="${srcdir}" destdir="${builddir}" debug="${debug}">
|
||||
<include name="${package}/test/jdbc2/**" if="jdk1.2+" />
|
||||
<include name="${package}/test/java2ee/**" if="jdk1.2e+" />
|
||||
</javac>
|
||||
|
Loading…
Reference in New Issue
Block a user