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

Re: Compiling slapd with debug symbols



On Tue, 19 Oct 2010, Lucas Brasilino wrote:

I've read configure.in and Makefile.in to find out a fancy way to do
it, but I have no idea.

It almost sounds like you're trying too hard. Using bash:

CFLAGS='-g' ./configure --enable-debug # --enable-debug=yes is default anyway
LTCFLAGS='-g'
export LTCFLAGS
make depend
make
mkdir /tmp/buildforopenldaptechnical
make install STRIP='' DESTDIR='/tmp/buildforopenldaptechnical'
# unset LTCFLAGS

gives me:
$ file /tmp/buildforopenldaptechnical/usr/local/libexec/slapd
/tmp/buildforopenldaptechnical/usr/local/libexec/slapd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped

I'm sure you can adjust for your favorite shell as needed...