Commit 0416641b authored by Bruce Momjian's avatar Bruce Momjian

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
parent af41101a
...@@ -259,7 +259,7 @@ AC_SUBST(enable_rpath) ...@@ -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
......
# -*-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@ ...@@ -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 @@ ...@@ -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]*\).* ...@@ -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 \
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment