[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: OpenLDAP 2.2.5 Debug Build Issue

That makes sense, but it seems like a workaround.  Shouldn't using the
--disable-debug switch when running configure turn off the generation of
debugging symbols during compilation?

Thanks again,


-----Original Message-----
From: Howard Chu [mailto:hyc@highlandsun.com] 
Sent: Friday, February 06, 2004 12:55 PM
To: 'Jason Raneses'; 'Quanah Gibson-Mount'; openldap-software@OpenLDAP.org
Subject: RE: OpenLDAP 2.2.5 Debug Build Issue

I think Quanah's point was that you should explicitly set your environment
variables in advance when you want a particular behavior in configure. In
this case, just set CFLAGS=-O2 before running configure. Also, since Make
variables can be overridden on the command line, it's easy enough to just
"make AC_CFLAGS=-O2" and not worry about the value that got configured in.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Jason Raneses

> Yes, I did a quick env dump to check out my environment
> variables and I
> don't see anything in there that would cause this to be
> happening.  I've
> also compiled other libraries this morning with no
> problems...this only
> occurred during compiling the OpenLDAP libraries.
> Jason
> -----Original Message-----
> From: Quanah Gibson-Mount [mailto:quanah@stanford.edu]

> --On Friday, February 06, 2004 10:34 AM -0800 Jason Raneses
> <jason@raneses.com> wrote:
> > I'm building the OpenLDAP 2.2.5 client libraries using MinGW, and
> > regardless of specifying --enable-debug=no or --disable-debug when
> > running configure, the -g gcc command line switch is being
> used during
> > compilation.  All of the Makefiles generated by autoconf end up
> > containing:
> >
> > AC_CFLAGS = -g -O2
> >
> > For the time being, I've manually stripped out the -g
> switch from the
> > Makefiles to compile without the debug symbols included.
> >
> > The configure command line used was the following:
> >
> > $ ./configure --prefix=/usr/local/mingw --host=i686-pc-mingw32
> > --enable-debug=no --enable-bdb=no --enable-dynamic --enable-shared
> > --enable-static=no
> >
> > Keep in mind I am not attempting to compile all of OpenLDAP, so I've
> > disabled bdb, etc. when running configure.  This is being
> done strictly to
> > compile the client libraries.
> Have you looked at your environment variables before running
> configure?