mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03: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:
@ -259,7 +259,7 @@ AC_SUBST(enable_rpath)
|
|||||||
#
|
#
|
||||||
PGAC_ARG_BOOL(enable, debug, no,
|
PGAC_ARG_BOOL(enable, debug, no,
|
||||||
[ --enable-debug build with debugging symbols (-g)])
|
[ --enable-debug build with debugging symbols (-g)])
|
||||||
|
AC_SUBST(enable_debug)
|
||||||
|
|
||||||
#
|
#
|
||||||
# C compiler
|
# C compiler
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# -*-makefile-*-
|
# -*-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,
|
# All PostgreSQL makefiles include this file and use the variables it sets,
|
||||||
@ -132,6 +132,7 @@ MULTIBYTE = @MULTIBYTE@
|
|||||||
enable_shared = @enable_shared@
|
enable_shared = @enable_shared@
|
||||||
enable_rpath = @enable_rpath@
|
enable_rpath = @enable_rpath@
|
||||||
enable_nls = @enable_nls@
|
enable_nls = @enable_nls@
|
||||||
|
enable_debug = @enable_debug@
|
||||||
|
|
||||||
python_version = @python_version@
|
python_version = @python_version@
|
||||||
python_includespec = @python_includespec@
|
python_includespec = @python_includespec@
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2001, PostgreSQL Global Development Group
|
# 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) \
|
properties := -Dmajor=$(majorversion) -Dminor=$(minorversion) \
|
||||||
-Dfullversion=$(VERSION) \
|
-Dfullversion=$(VERSION) \
|
||||||
-Ddef_pgport=$(DEF_PGPORT)
|
-Ddef_pgport=$(DEF_PGPORT) \
|
||||||
|
-Denable_debug=$(enable_debug)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(ANT) -buildfile $(srcdir)/build.xml all \
|
$(ANT) -buildfile $(srcdir)/build.xml all \
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
build file to allow ant (http://jakarta.apache.org/ant/) to be used
|
build file to allow ant (http://jakarta.apache.org/ant/) to be used
|
||||||
to build the PostgreSQL JDBC Driver
|
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="jardir" value="jars" />
|
||||||
<property name="builddir" value="build" />
|
<property name="builddir" value="build" />
|
||||||
<property name="package" value="org/postgresql" />
|
<property name="package" value="org/postgresql" />
|
||||||
<property name="debug" value="yes" />
|
<property name="debug" value="off" />
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
This is a simpler method than utils.CheckVersion
|
This is a simpler method than utils.CheckVersion
|
||||||
@ -149,6 +149,12 @@
|
|||||||
|
|
||||||
<!-- Prepares the build directory -->
|
<!-- Prepares the build directory -->
|
||||||
<target name="prepare">
|
<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="${builddir}" />
|
||||||
<mkdir dir="${jardir}" />
|
<mkdir dir="${jardir}" />
|
||||||
</target>
|
</target>
|
||||||
@ -156,7 +162,7 @@
|
|||||||
|
|
||||||
<!-- This builds the examples -->
|
<!-- This builds the examples -->
|
||||||
<target name="examples" depends="compile">
|
<target name="examples" depends="compile">
|
||||||
<javac srcdir="${srcdir}" destdir="${builddir}">
|
<javac srcdir="${srcdir}" destdir="${builddir}" debug="${debug}">
|
||||||
<include name="example/**" />
|
<include name="example/**" />
|
||||||
<exclude name="example/corba/**"/>
|
<exclude name="example/corba/**"/>
|
||||||
<exclude name="example/blobtest.java" unless="jdk1.2+"/>
|
<exclude name="example/blobtest.java" unless="jdk1.2+"/>
|
||||||
@ -170,7 +176,7 @@
|
|||||||
<arg value="stock.idl" />
|
<arg value="stock.idl" />
|
||||||
</exec>
|
</exec>
|
||||||
|
|
||||||
<javac srcdir="${srcdir}" destdir="${builddir}">
|
<javac srcdir="${srcdir}" destdir="${builddir}" debug="${debug}">
|
||||||
<include name="example/corba/**" />
|
<include name="example/corba/**" />
|
||||||
</javac>
|
</javac>
|
||||||
</target>
|
</target>
|
||||||
@ -215,7 +221,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<target name="test" depends="jar" if="junit">
|
<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/jdbc2/**" if="jdk1.2+" />
|
||||||
<include name="${package}/test/java2ee/**" if="jdk1.2e+" />
|
<include name="${package}/test/java2ee/**" if="jdk1.2e+" />
|
||||||
</javac>
|
</javac>
|
||||||
|
Reference in New Issue
Block a user