Skip site navigation (1) Skip section navigation (2)

--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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group