--enable-debug does not work with gcc

From: NikhilS <nikkhils(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: --enable-debug does not work with gcc
Date: 2007-02-02 08:28:51
Message-ID: d3c4af540702020028n210663dbrdc84cfad8ffcfca8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

configure with --enable-debug does not seem to add "-g" to CFLAGS while
compiling with gcc. Guess we will need to change configure.in as below:

***************

# supply -g if --enable-debug
! if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
CFLAGS="$CFLAGS -g"
fi
--- 300,315 ----

# supply -g if --enable-debug
! if test "$enable_debug" = yes && (test "$ac_cv_prog_cc_g" = yes ||
! test "$ac_cv_prog_gcc_g" = yes); then
CFLAGS="$CFLAGS -g"
fi

Should I submit a patch for this?

Regards,
Nikhils
--
EnterpriseDB http://www.enterprisedb.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gavin Sherry 2007-02-02 08:32:08 Re: --enable-debug does not work with gcc
Previous Message Jeremy Drake 2007-02-02 08:15:15 Re: writing new regexp functions